large integers are converted to strings in JSON printing
This commit is contained in:
parent
e934e9a9f7
commit
135949ee19
1 changed files with 14 additions and 2 deletions
|
|
@ -589,11 +589,23 @@ namespace fc
|
|||
os << "null";
|
||||
return;
|
||||
case variant::int64_type:
|
||||
os << v.as_int64();
|
||||
{
|
||||
int64_t i = v.as_int64();
|
||||
if( i >> 32 )
|
||||
os << v.as_string();
|
||||
else
|
||||
os << i;
|
||||
return;
|
||||
}
|
||||
case variant::uint64_type:
|
||||
os << v.as_uint64();
|
||||
{
|
||||
uint64_t i = v.as_uint64();
|
||||
if( i >> 32 )
|
||||
os << v.as_string();
|
||||
else
|
||||
os << i;
|
||||
return;
|
||||
}
|
||||
case variant::double_type:
|
||||
os << v.as_double();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue