| 85 | #if !defined(JSON_USE_INT64_DOUBLE_CONVERSION) |
| 86 | template <typename T, typename U> |
| 87 | static inline bool InRange(double d, T min, U max) { |
| 88 | // The casts can lose precision, but we are looking only for |
| 89 | // an approximate range. Might fail on edge cases though. ~cdunn |
| 90 | return d >= static_cast<double>(min) && d <= static_cast<double>(max); |
| 91 | } |
| 92 | #else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION) |
| 93 | static inline double integerToDouble(Json::UInt64 value) { |
| 94 | return static_cast<double>(Int64(value / 2)) * 2.0 + |
no test coverage detected
searching dependent graphs…