Skip to content

Commit cf86c47

Browse files
committed
Supporting GCC 6.0
This patch is also needed to build success for GCC 6.0. Refer issue - open-source-parsers#411
1 parent 75570d7 commit cf86c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib_json/json_value.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static inline bool InRange(double d, T min, U max) {
6262
}
6363
#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
6464
static inline double integerToDouble(Json::UInt64 value) {
65-
return static_cast<double>(Int64(value / 2)) * 2.0 + Int64(value & 1);
65+
return static_cast<double>(Int64(value / 2)) * 2.0 + static_cast<double>(Int64(value & 1));
6666
}
6767

6868
template <typename T> static inline double integerToDouble(T value) {

0 commit comments

Comments
 (0)