diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-15 16:20:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-15 16:20:59 +0100 |
commit | 938a0dba32a7f1632c3e14b92d986384aff19d7a (patch) | |
tree | 32e64f23e9bbed4c9123fb19972406ed6349d1d1 /src/libstat/classifiers | |
parent | 46d32375ac0fe58156da513670ea7c9bccf0aed2 (diff) | |
download | rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.tar.gz rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.zip |
[Minor] Better Lua 5.3 compatibility
Diffstat (limited to 'src/libstat/classifiers')
-rw-r--r-- | src/libstat/classifiers/lua_classifier.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstat/classifiers/lua_classifier.c b/src/libstat/classifiers/lua_classifier.c index b76893920..7b495b165 100644 --- a/src/libstat/classifiers/lua_classifier.c +++ b/src/libstat/classifiers/lua_classifier.c @@ -156,11 +156,11 @@ lua_classifier_classify (struct rspamd_classifier *cl, v = tok->data; lua_createtable (L, 3, 0); /* High word, low word, order */ - lua_pushnumber (L, (guint32)(v >> 32)); + lua_pushinteger (L, (guint32)(v >> 32)); lua_rawseti (L, -2, 1); - lua_pushnumber (L, (guint32)(v)); + lua_pushinteger (L, (guint32)(v)); lua_rawseti (L, -2, 2); - lua_pushnumber (L, tok->window_idx); + lua_pushinteger (L, tok->window_idx); lua_rawseti (L, -2, 3); lua_rawseti (L, -2, i + 1); } @@ -212,11 +212,11 @@ lua_classifier_learn_spam (struct rspamd_classifier *cl, v = tok->data; lua_createtable (L, 3, 0); /* High word, low word, order */ - lua_pushnumber (L, (guint32)(v >> 32)); + lua_pushinteger (L, (guint32)(v >> 32)); lua_rawseti (L, -2, 1); - lua_pushnumber (L, (guint32)(v)); + lua_pushinteger (L, (guint32)(v)); lua_rawseti (L, -2, 2); - lua_pushnumber (L, tok->window_idx); + lua_pushinteger (L, tok->window_idx); lua_rawseti (L, -2, 3); lua_rawseti (L, -2, i + 1); } |