| 2493 | #if !defined(JSON_USE_INT64_DOUBLE_CONVERSION) |
| 2494 | template <typename T, typename U> |
| 2495 | static inline bool InRange(double d, T min, U max) { |
| 2496 | return d >= min && d <= max; |
| 2497 | } |
| 2498 | #else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION) |
| 2499 | static inline double integerToDouble(Json::UInt64 value) { |
| 2500 | return static_cast<double>(Int64(value / 2)) * 2.0 + Int64(value & 1); |
no test coverage detected