We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb9a58 commit 28b7eb7Copy full SHA for 28b7eb7
src/lib_json/json_value.cpp
@@ -94,8 +94,7 @@ template <typename T, typename U>
94
static inline bool InRange(double d, T min, U max) {
95
// The casts can lose precision, but we are looking only for
96
// an approximate range. Might fail on edge cases though. ~cdunn
97
- // return d >= static_cast<double>(min) && d <= static_cast<double>(max);
98
- return d >= min && d <= max;
+ return d >= static_cast<double>(min) && d <= static_cast<double>(max);
99
}
100
#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
101
static inline double integerToDouble(Json::UInt64 value) {
0 commit comments