Merge pull request #1290 from sehraf/pr_fix_json_uint64

fix json uint64
This commit is contained in:
csoler 2018-06-28 21:05:34 +02:00 committed by GitHub
commit 5ffd7a2352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}