add test cases

This commit is contained in:
dota17 committed 2020-03-31 19:12:45 +08:00
1 parent d1650a582e
commit 3822177473
9 files changed
+89 -1

No files matched your search

+2 -1
View File
@@ -656,7 +656,8 @@ int32_t json_object_get_int(const struct json_object *jso)
} else {
if (jso->o.c_int.cint.c_uint64 >= INT64_MAX)
cint64 = INT64_MAX;
cint64 = (int64_t)jso->o.c_int.cint.c_uint64;
else
cint64 = (int64_t)jso->o.c_int.cint.c_uint64;
}
if (o_type == json_type_string)