mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-17 19:31:35 +02: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_ )
|
switch ( type_ )
|
||||||
{
|
{
|
||||||
case intValue:
|
case intValue:
|
||||||
return value_.int_ >= 0 && value_.int_ <= maxUInt;
|
return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt);
|
||||||
case uintValue:
|
case uintValue:
|
||||||
return value_.uint_ <= maxUInt;
|
return value_.uint_ <= maxUInt;
|
||||||
case realValue:
|
case realValue:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user