Merge pull request #5730 from jck112/luci-lib-jsonc#3293
luci-lib-jsonc: stringify int use json_object_new_int64 instead
This commit is contained in:
commit
c2b847cf12
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ static struct json_object * _lua_to_json_rec(lua_State *L, int index,
|
|||
ni = lua_tointeger(L, index);
|
||||
|
||||
if (nd == ni)
|
||||
return json_object_new_int(nd);
|
||||
return json_object_new_int64(nd);
|
||||
|
||||
return json_object_new_double(nd);
|
||||
|
||||
|
|
Loading…
Reference in a new issue