aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/classifiers/lua_classifier.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstat/classifiers/lua_classifier.c')
-rw-r--r--src/libstat/classifiers/lua_classifier.c12
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);
}