projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
162defe
)
luci-lib-jsonc: stringify int use json_object_new_int64 instead
author
Justin Klaassen
<jck112@users.noreply.github.com>
Sat, 19 Mar 2022 18:34:05 +0000
(11:34 -0700)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 7 Apr 2022 17:12:01 +0000
(19:12 +0200)
Fixes: #3293
Signed-off-by: Justin Klaassen <jck112@users.noreply.github.com>
(cherry picked from commit
45f411b7a29d0aa6b46946f06bd88082f2a68034
)
libs/luci-lib-jsonc/src/jsonc.c
patch
|
blob
|
history
diff --git
a/libs/luci-lib-jsonc/src/jsonc.c
b/libs/luci-lib-jsonc/src/jsonc.c
index 2f56a4a68815e1e9f39fc7140736edb1fa526fe4..74839dd4f57cadab356ade396d0645e6bf9ebccb 100644
(file)
--- 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_int
64
(nd);
return json_object_new_double(nd);