adding quotes around large integers
This commit is contained in:
parent
a3c284408e
commit
71cca4559c
1 changed files with 6 additions and 5 deletions
|
|
@ -591,8 +591,8 @@ namespace fc
|
||||||
case variant::int64_type:
|
case variant::int64_type:
|
||||||
{
|
{
|
||||||
int64_t i = v.as_int64();
|
int64_t i = v.as_int64();
|
||||||
if( i >> 32 )
|
if( i > 0xffffffff )
|
||||||
os << v.as_string();
|
os << '"'<<v.as_string()<<'"';
|
||||||
else
|
else
|
||||||
os << i;
|
os << i;
|
||||||
return;
|
return;
|
||||||
|
|
@ -600,14 +600,15 @@ namespace fc
|
||||||
case variant::uint64_type:
|
case variant::uint64_type:
|
||||||
{
|
{
|
||||||
uint64_t i = v.as_uint64();
|
uint64_t i = v.as_uint64();
|
||||||
if( i >> 32 )
|
if( i > 0xffffffff )
|
||||||
os << v.as_string();
|
os << '"'<<v.as_string()<<'"';
|
||||||
else
|
else
|
||||||
os << i;
|
os << i;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case variant::double_type:
|
case variant::double_type:
|
||||||
os << v.as_double();
|
//os << v.as_string();
|
||||||
|
os << '"'<<v.as_string()<<'"';
|
||||||
return;
|
return;
|
||||||
case variant::bool_type:
|
case variant::bool_type:
|
||||||
os << v.as_string();
|
os << v.as_string();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue