mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-22 21:31:07 -05:00
time_t may be signed in JSON
This commit is contained in:
parent
ef6681b6f9
commit
86ce177228
@ -251,8 +251,8 @@ bool RsTypeSerializer::from_JSON( const std::string& memberName, time_t& member,
|
||||
RsJson& jDoc )
|
||||
{
|
||||
SAFE_GET_JSON_V();
|
||||
ret = ret && v.IsUint();
|
||||
if(ret) member = v.GetUint();
|
||||
ret = ret && v.IsInt();
|
||||
if(ret) member = v.GetInt();
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -298,7 +298,7 @@ bool RsTypeSerializer::from_JSON( const std::string& memberName,
|
||||
|
||||
|
||||
//============================================================================//
|
||||
// FLoats //
|
||||
// Floats //
|
||||
//============================================================================//
|
||||
|
||||
template<> uint32_t RsTypeSerializer::serial_size(const float&){ return 4; }
|
||||
|
Loading…
Reference in New Issue
Block a user