Skip to content

Commit fbe1cf3

Browse files
committed
Supporting GCC 6.0
Fixes test with GCC-6.0
1 parent cf86c47 commit fbe1cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/test_lib_json/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static inline double uint64ToDouble(Json::UInt64 value) {
3939
#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
4040
static inline double uint64ToDouble(Json::UInt64 value) {
4141
return static_cast<double>(Json::Int64(value / 2)) * 2.0 +
42-
Json::Int64(value & 1);
42+
static_cast<double>(Json::Int64(value & 1));
4343
}
4444
#endif // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
4545

0 commit comments

Comments
 (0)