diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-23 23:40:53 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-23 23:40:53 +0000 |
commit | 8a550e596cf7df735383fc2a2c3b79c51ac0a589 (patch) | |
tree | 1c39f7a858fc4a0ee160071ea66cc99c59e30e85 /dev-libs/libucl/files | |
parent | 9aeefa0bd7e7604816f3ce08002112f9965176c3 (diff) |
gentoo auto-resync : 23:02:2024 - 23:40:53
Diffstat (limited to 'dev-libs/libucl/files')
-rw-r--r-- | dev-libs/libucl/files/libucl-0.9.0-gchar-compile.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/libucl/files/libucl-0.9.0-gchar-compile.patch b/dev-libs/libucl/files/libucl-0.9.0-gchar-compile.patch new file mode 100644 index 000000000000..9ec9105276c1 --- /dev/null +++ b/dev-libs/libucl/files/libucl-0.9.0-gchar-compile.patch @@ -0,0 +1,36 @@ +Merged as: https://github.com/vstakhov/libucl/commit/708f5e21e3d85f56cdcbcbc418d8725f53bf390b +From: Vsevolod Stakhov <vsevolod@rspamd.com> +Date: Tue, 6 Feb 2024 15:59:48 +0000 +Subject: [PATCH] Fix lua compile issues + +Issue: #282 +--- a/lua/lua_ucl.c ++++ b/lua/lua_ucl.c +@@ -406,7 +406,6 @@ ucl_object_lua_fromtable (lua_State *L, int idx, ucl_string_flags_t flags) + + /* Table iterate */ + if (is_array) { +- int i; + + if (!is_implicit) { + top = ucl_object_typed_new (UCL_ARRAY); +@@ -416,7 +415,7 @@ ucl_object_lua_fromtable (lua_State *L, int idx, ucl_string_flags_t flags) + top = NULL; + } + +- for (i = 1; i <= max; i ++) { ++ for (size_t i = 1; i <= max; i ++) { + lua_pushinteger (L, i); + lua_gettable (L, idx); + +@@ -886,8 +885,8 @@ lua_ucl_parser_parse_text (lua_State *L) + t = lua_touserdata (L, 2); + } + else if (lua_type (L, 2) == LUA_TSTRING) { +- const gchar *s; +- gsize len; ++ const char *s; ++ size_t len; + static struct _rspamd_lua_text st_t; + + s = lua_tolstring (L, 2, &len); |