aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-10-02 21:22:37 +0600
committerGitHub <noreply@github.com>2024-10-02 21:22:37 +0600
commitcec11b58a81b589863f58211c2fb8f3c58747031 (patch)
treec8a7370e652a9a89397d2aa6443a6ca26c2fffb5
parentda5fa7ec0d65e6cdcd6211c6b4dc87c467eef354 (diff)
parent3041484f859f3d8cc2275c5189280c31ff3ffeda (diff)
downloadrspamd-cec11b58a81b589863f58211c2fb8f3c58747031.tar.gz
rspamd-cec11b58a81b589863f58211c2fb8f3c58747031.zip
Merge pull request #5169 from arkamar/lua-ucl/len-type
[Fix] Use correct type for keylen in lua_ucl_newindex
-rw-r--r--contrib/libucl/lua_ucl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libucl/lua_ucl.c b/contrib/libucl/lua_ucl.c
index 19ac9cb12..473aefe0c 100644
--- a/contrib/libucl/lua_ucl.c
+++ b/contrib/libucl/lua_ucl.c
@@ -1426,7 +1426,7 @@ lua_ucl_newindex(lua_State *L)
if (ucl_object_type(obj) == UCL_OBJECT) {
if (key_type == LUA_TSTRING) {
- lua_Integer keylen;
+ size_t keylen;
const char *key = lua_tolstring(L, 2, &keylen);
ucl_object_t *value_obj = lua_ucl_object_get(L, 3);
@@ -1539,7 +1539,7 @@ lua_ucl_newindex(lua_State *L)
obj->value.av = NULL;
obj->type = UCL_OBJECT;
- lua_Integer keylen;
+ size_t keylen;
const char *key = lua_tolstring(L, 2, &keylen);
ucl_object_t *value_obj = lua_ucl_object_get(L, 3);