Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJustin Klaassen <jck112@users.noreply.github.com>2022-03-19 21:34:05 +0300
committerJustin Klaassen <jck112@users.noreply.github.com>2022-03-20 18:11:33 +0300
commit45f411b7a29d0aa6b46946f06bd88082f2a68034 (patch)
treebd394f17dd1762046e0edb4a20523b09b9e91689 /libs
parentf27fe280aa7a1d39de7144298541bfac8bb59f7f (diff)
luci-lib-jsonc: stringify int use json_object_new_int64 instead
Fixes: #3293 Signed-off-by: Justin Klaassen <jck112@users.noreply.github.com>
Diffstat (limited to 'libs')
-rw-r--r--libs/luci-lib-jsonc/src/jsonc.c2
1 files changed, 1 insertions, 1 deletions
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);