mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-20 14:02:36 +02:00
Optimize value check
This commit is contained in:
@@ -1366,7 +1366,7 @@ bool Value::isIntegral() const {
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Value::isDouble() const { return type_ == realValue || isIntegral(); }
|
||||
bool Value::isDouble() const { return type_ == intValue || type_ == uintValue || type_ == realValue; }
|
||||
|
||||
bool Value::isNumeric() const { return isDouble(); }
|
||||
|
||||
|
Reference in New Issue
Block a user