diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-14 16:16:56 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-14 16:16:56 +0000 |
commit | 601e6403a2c8bcd9e73bb683cd26aa5d3a2c06b9 (patch) | |
tree | f86b6bc60758d6099a9f11e3f3c44501fd702f6a /src/lua/lua_text.c | |
parent | 568773df1dcf5ed043ca0c760eaf53f1705ceb34 (diff) | |
download | rspamd-601e6403a2c8bcd9e73bb683cd26aa5d3a2c06b9.tar.gz rspamd-601e6403a2c8bcd9e73bb683cd26aa5d3a2c06b9.zip |
[Minor] Allow lua_text in addition to strings
Diffstat (limited to 'src/lua/lua_text.c')
-rw-r--r-- | src/lua/lua_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |