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 75570d7 commit cf86c47Copy full SHA for cf86c47
src/lib_json/json_value.cpp
@@ -62,7 +62,7 @@ static inline bool InRange(double d, T min, U max) {
62
}
63
#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
64
static inline double integerToDouble(Json::UInt64 value) {
65
- return static_cast<double>(Int64(value / 2)) * 2.0 + Int64(value & 1);
+ return static_cast<double>(Int64(value / 2)) * 2.0 + static_cast<double>(Int64(value & 1));
66
67
68
template <typename T> static inline double integerToDouble(T value) {
0 commit comments