add test cases

This commit is contained in:
dota17
2020-03-30 17:32:06 +08:00
parent d1650a582e
commit 3822177473
9 changed files with 89 additions and 1 deletions

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)