| 2723 | |
| 2724 | #if !defined(JSON_USE_INT64_DOUBLE_CONVERSION) |
| 2725 | template <typename T, typename U> static inline bool InRange(double d, T min, U max) |
| 2726 | { |
| 2727 | // The casts can lose precision, but we are looking only for |
| 2728 | // an approximate range. Might fail on edge cases though. ~cdunn |
| 2729 | return d >= static_cast<double>(min) && d <= static_cast<double>(max); |
| 2730 | } |
| 2731 | #else // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION) |
| 2732 | static inline double integerToDouble(Json::UInt64 value) |
| 2733 | { |
no test coverage detected