From f7625e35261b11e8ce3f391a9963fb0ec69802e5 Mon Sep 17 00:00:00 2001 From: sehraf Date: Thu, 28 Jun 2018 20:25:10 +0200 Subject: [PATCH] fix json uint64 --- libretroshare/src/serialiser/rstypeserializer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/serialiser/rstypeserializer.cc b/libretroshare/src/serialiser/rstypeserializer.cc index e7faa5b52..72d20ecc2 100644 --- a/libretroshare/src/serialiser/rstypeserializer.cc +++ b/libretroshare/src/serialiser/rstypeserializer.cc @@ -291,8 +291,8 @@ bool RsTypeSerializer::from_JSON( const std::string& memberName, uint64_t& member, RsJson& jDoc ) { SAFE_GET_JSON_V(); - ret = ret && v.IsUint(); - if(ret) member = v.GetUint(); + ret = ret && v.IsUint64(); + if(ret) member = v.GetUint64(); return ret; }