From 601e6403a2c8bcd9e73bb683cd26aa5d3a2c06b9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 14 Dec 2021 16:16:56 +0000 Subject: [Minor] Allow lua_text in addition to strings --- src/lua/lua_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/lua_text.c') diff --git a/src/lua/lua_text.c b/src/lua/lua_text.c index d1fd87ded..f88b5c29b 100644 --- a/src/lua/lua_text.c +++ b/src/lua/lua_text.c @@ -292,7 +292,7 @@ lua_check_text_or_string (lua_State * L, gint pos) * Fake static lua_text, we allow to use this function multiple times * by having a small array of static structures. */ - static int cur_txt_idx = 0; + static unsigned cur_txt_idx = 0; static struct rspamd_lua_text fake_text[4]; gsize len; int sel_idx; -- cgit v1.2.3