File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1279,7 +1279,11 @@ bool Value::isBool() const { return type_ == booleanValue; }
1279
1279
bool Value::isInt () const {
1280
1280
switch (type_) {
1281
1281
case intValue:
1282
+ #if defined(JSON_HAS_INT64)
1282
1283
return value_.int_ >= minInt && value_.int_ <= maxInt;
1284
+ #else
1285
+ return true ;
1286
+ #endif
1283
1287
case uintValue:
1284
1288
return value_.uint_ <= UInt (maxInt);
1285
1289
case realValue:
@@ -1294,9 +1298,17 @@ bool Value::isInt() const {
1294
1298
bool Value::isUInt () const {
1295
1299
switch (type_) {
1296
1300
case intValue:
1301
+ #if defined(JSON_HAS_INT64)
1297
1302
return value_.int_ >= 0 && LargestUInt (value_.int_ ) <= LargestUInt (maxUInt);
1303
+ #else
1304
+ return value_.int_ >= 0 ;
1305
+ #endif
1298
1306
case uintValue:
1307
+ #if defined(JSON_HAS_INT64)
1299
1308
return value_.uint_ <= maxUInt;
1309
+ #else
1310
+ return true ;
1311
+ #endif
1300
1312
case realValue:
1301
1313
return value_.real_ >= 0 && value_.real_ <= maxUInt &&
1302
1314
IsIntegral (value_.real_ );
You can’t perform that action at this time.
0 commit comments