Permalink
Browse files

Fixed a 'comparison between signed and unsigned' error.

git-svn-id: https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk@219 1f120ed1-78a5-a849-adca-83f0a9e25bb6
  • Loading branch information...
1 parent b1ad1cc commit cab900ee1c4c3c7b676acb1a1348efe90e67d78c aaronjacobs committed with rjeczalik May 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib_json/json_value.cpp
@@ -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:

0 comments on commit cab900e

Please sign in to comment.