time_t may be signed in JSON

This commit is contained in:
Gioacchino Mazzurco 2018-01-27 19:57:15 +01:00
parent ef6681b6f9
commit 86ce177228

View File

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