if (task != NULL) {
if (task->settings_elt) {
- lua_pushnumber (L, task->settings_elt->id);
+ lua_pushinteger (L, task->settings_elt->id);
}
else {
lua_pushnil (L);
{
LUA_TRACE_POINT;
struct rspamd_task *task = lua_check_task (L, 1);
- guint32 id = luaL_checknumber (L, 2);
+ guint32 id = lua_tointeger (L, 2);
if (task != NULL && id != 0) {
id);
if (!task->settings_elt) {
- return luaL_error (L, "settings id %d is unknown", id);
+ return luaL_error (L, "settings id %u is unknown", id);
}
}