mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-25 07:41:07 +01:00
Fixed a 'comparison between signed and unsigned' error.
This commit is contained in:
parent
7b5edd9859
commit
e082248001
@ -1373,7 +1373,7 @@ Value::isUInt() const
|
||||
switch ( type_ )
|
||||
{
|
||||
case intValue:
|
||||
return value_.int_ >= 0 && value_.int_ <= maxUInt;
|
||||
return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt);
|
||||
case uintValue:
|
||||
return value_.uint_ <= maxUInt;
|
||||
case realValue:
|
||||
|
Loading…
x
Reference in New Issue
Block a user