mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 02:06:04 +02:00
Fix JSON parsing of large unsigned 64-bit integers
This commit is contained in:
@@ -81,6 +81,12 @@ Int64 Token::asInteger64() const
|
||||
{
|
||||
return NumberParser::parse64(_value);
|
||||
}
|
||||
|
||||
|
||||
UInt64 Token::asUnsignedInteger64() const
|
||||
{
|
||||
return NumberParser::parseUnsigned64(_value);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -90,6 +96,12 @@ int Token::asInteger() const
|
||||
}
|
||||
|
||||
|
||||
unsigned Token::asUnsignedInteger() const
|
||||
{
|
||||
return NumberParser::parseUnsigned(_value);
|
||||
}
|
||||
|
||||
|
||||
double Token::asFloat() const
|
||||
{
|
||||
return NumberParser::parseFloat(_value);
|
||||
|
||||
Reference in New Issue
Block a user