From: Justin Klaassen Date: Sat, 19 Mar 2022 18:34:05 +0000 (-0700) Subject: luci-lib-jsonc: stringify int use json_object_new_int64 instead X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=751334571da8104e757dbd138f4552afc53d0432;p=project%2Fluci.git luci-lib-jsonc: stringify int use json_object_new_int64 instead Fixes: #3293 Signed-off-by: Justin Klaassen (cherry picked from commit 45f411b7a29d0aa6b46946f06bd88082f2a68034) --- diff --git a/libs/luci-lib-jsonc/src/jsonc.c b/libs/luci-lib-jsonc/src/jsonc.c index 2f56a4a688..74839dd4f5 100644 --- a/libs/luci-lib-jsonc/src/jsonc.c +++ b/libs/luci-lib-jsonc/src/jsonc.c @@ -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);