mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
time_t may be signed in JSON
This commit is contained in:
parent
ef6681b6f9
commit
86ce177228
1 changed files with 3 additions and 3 deletions
|
@ -251,8 +251,8 @@ bool RsTypeSerializer::from_JSON( const std::string& memberName, time_t& member,
|
||||||
RsJson& jDoc )
|
RsJson& jDoc )
|
||||||
{
|
{
|
||||||
SAFE_GET_JSON_V();
|
SAFE_GET_JSON_V();
|
||||||
ret = ret && v.IsUint();
|
ret = ret && v.IsInt();
|
||||||
if(ret) member = v.GetUint();
|
if(ret) member = v.GetInt();
|
||||||
return ret;
|
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; }
|
template<> uint32_t RsTypeSerializer::serial_size(const float&){ return 4; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue