Line 0
Link Here
|
|
|
1 |
--- json_object.c.orig 2020-02-18 20:12:20 UTC |
2 |
+++ json_object.c |
3 |
@@ -698,9 +698,9 @@ int64_t json_object_get_int64(const struct json_object |
4 |
case json_type_int: |
5 |
return jso->o.c_int64; |
6 |
case json_type_double: |
7 |
- if (jso->o.c_double >= INT64_MAX) |
8 |
+ if (jso->o.c_double >= (double)INT64_MAX) |
9 |
return INT64_MAX; |
10 |
- if (jso->o.c_double <= INT64_MIN) |
11 |
+ if (jso->o.c_double <= (double)INT64_MIN) |
12 |
return INT64_MIN; |
13 |
return (int64_t)jso->o.c_double; |
14 |
case json_type_boolean: |