diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-08-03 21:51:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-08-03 21:51:55 +0100 |
commit | 2d73e42c2ac317b11c11a5a4f6487b9cb581d1be (patch) | |
tree | 548936dff14137a31ff4b7eadd85582490c7b415 /src/lua/lua_task.c | |
parent | 05c186a485f9b07680f6cb1d0e44039a37a400bf (diff) | |
download | rspamd-2d73e42c2ac317b11c11a5a4f6487b9cb581d1be.tar.gz rspamd-2d73e42c2ac317b11c11a5a4f6487b9cb581d1be.zip |
[Minor] Use integer instead of number
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index ed7ebcbea..b7a087103 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2296,7 +2296,7 @@ lua_task_set_pre_result (lua_State * L) } if (lua_type (L, 6) == LUA_TNUMBER) { - priority = lua_tonumber (L, 6); + priority = lua_tointeger(L, 6); } if (lua_type (L, 7) == LUA_TSTRING) { @@ -2338,6 +2338,10 @@ lua_task_set_pre_result (lua_State * L) } if (fl_str != NULL) { + /* + * TODO: convert to a set of string and split by `,` + add table support + * once this legacy code is migrated to C++ + */ if (strstr (fl_str, "least") != NULL) { flags |= RSPAMD_PASSTHROUGH_LEAST; } |