File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1308,12 +1308,12 @@ bool Value::isInt() const {
1308
1308
switch (type_) {
1309
1309
case intValue:
1310
1310
#if defined(JSON_HAS_INT64)
1311
- return value_.int_ >= minInt && value_.int_ <= maxInt;
1311
+ return Int ( value_.int_ ) >= minInt && Int ( value_.int_ ) <= maxInt;
1312
1312
#else
1313
1313
return true ;
1314
1314
#endif
1315
1315
case uintValue:
1316
- return value_.uint_ <= UInt (maxInt);
1316
+ return UInt ( value_.uint_ ) <= UInt (maxInt);
1317
1317
case realValue:
1318
1318
return value_.real_ >= minInt && value_.real_ <= maxInt &&
1319
1319
IsIntegral (value_.real_ );
@@ -1333,7 +1333,7 @@ bool Value::isUInt() const {
1333
1333
#endif
1334
1334
case uintValue:
1335
1335
#if defined(JSON_HAS_INT64)
1336
- return value_.uint_ <= maxUInt;
1336
+ return UInt ( value_.uint_ ) <= maxUInt;
1337
1337
#else
1338
1338
return true ;
1339
1339
#endif
@@ -1352,7 +1352,7 @@ bool Value::isInt64() const {
1352
1352
case intValue:
1353
1353
return true ;
1354
1354
case uintValue:
1355
- return value_.uint_ <= UInt64 (maxInt64);
1355
+ return UInt64 ( value_.uint_ ) <= UInt64 (maxInt64);
1356
1356
case realValue:
1357
1357
// Note that maxInt64 (= 2^63 - 1) is not exactly representable as a
1358
1358
// double, so double(maxInt64) will be rounded up to 2^63. Therefore we
You can’t perform that action at this time.
0 commit comments