mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-21 07:45:00 +02:00
Optimize value check
This commit is contained in:
@@ -1366,7 +1366,7 @@ bool Value::isIntegral() const {
|
|||||||
#endif
|
#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(); }
|
bool Value::isNumeric() const { return isDouble(); }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user