Skip to content

Commit ee79359

Browse files
author
Alexander V. Brezgin
committed
Optimize value check
1 parent b4abc82 commit ee79359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ bool Value::isIntegral() const {
13661366
#endif
13671367
}
13681368

1369-
bool Value::isDouble() const { return type_ == realValue || isIntegral(); }
1369+
bool Value::isDouble() const { return type_ == intValue || type_ == uintValue || type_ == realValue; }
13701370

13711371
bool Value::isNumeric() const { return isDouble(); }
13721372

0 commit comments

Comments
 (0)