mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-30 22:14:09 +08:00
Supporting GCC 6.0
Fixes test with GCC-6.0
This commit is contained in:
parent
cf86c473a5
commit
fbe1cf3916
@ -39,7 +39,7 @@ static inline double uint64ToDouble(Json::UInt64 value) {
|
|||||||
#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
|
#else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
|
||||||
static inline double uint64ToDouble(Json::UInt64 value) {
|
static inline double uint64ToDouble(Json::UInt64 value) {
|
||||||
return static_cast<double>(Json::Int64(value / 2)) * 2.0 +
|
return static_cast<double>(Json::Int64(value / 2)) * 2.0 +
|
||||||
Json::Int64(value & 1);
|
static_cast<double>(Json::Int64(value & 1));
|
||||||
}
|
}
|
||||||
#endif // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
|
#endif // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user