IsJSONSafe indicates whether the int is safely representable as a floating point value in JSON.
| 89 | // IsJSONSafe indicates whether the int is safely representable as a floating |
| 90 | // point value in JSON. |
| 91 | static bool IsJSONSafe(int64_t i) { |
| 92 | return i >= kMinIntJSON && i <= kMaxIntJSON; |
| 93 | } |
| 94 | |
| 95 | // IsJSONSafe indicates whether the uint is safely representable as a floating |
| 96 | // point value in JSON. |