mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
luci-lib-jsonc: stringify int use json_object_new_int64 instead
Fixes: #3293 Signed-off-by: Justin Klaassen <jck112@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user