luci-lib-jsonc: stringify int use json_object_new_int64 instead
Fixes: #3293
Signed-off-by: Justin Klaassen <jck112@users.noreply.github.com>
(cherry picked from commit 45f411b7a2
)
This commit is contained in:
parent
59c838b52a
commit
bc85ba52a7
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