diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index 19c187a..7b83497 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -103,7 +103,7 @@ template static inline double integerToDouble(T value) { template static inline bool InRange(double d, T min, U max) { return d >= integerToDouble(min) && d <= integerToDouble(max) && - !(static_cast(d) == min && d != integerToDouble(min)); + !(static_cast(d) == min || d != integerToDouble(min)); } #endif // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)