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 45f411b7a29d0aa6b46946f06bd88082f2a68034)
This commit is contained in:
parent
162defebe9
commit
751334571d
@ -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…
x
Reference in New Issue
Block a user