diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 14:56:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 14:56:16 +0000 |
commit | 6b2b4167187fee09365271cca182866ecb029af3 (patch) | |
tree | a085717bc896b25ff4280eb86abecca0d5c36767 /src/libstat/classifiers/lua_classifier.c | |
parent | 47bcfc8360dfa1754474580e779314b8d6a78da6 (diff) | |
download | rspamd-6b2b4167187fee09365271cca182866ecb029af3.tar.gz rspamd-6b2b4167187fee09365271cca182866ecb029af3.zip |
[Rework] Remove some of the GLib types in lieu of standard ones
This types have constant conflicts with the system ones especially on OSX.
Diffstat (limited to 'src/libstat/classifiers/lua_classifier.c')
-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 30b2a0abd..88ab015d6 100644 --- a/src/libstat/classifiers/lua_classifier.c +++ b/src/libstat/classifiers/lua_classifier.c @@ -136,7 +136,7 @@ lua_classifier_classify(struct rspamd_classifier *cl, lua_State *L; rspamd_token_t *tok; guint i; - guint64 v; + uint64_t v; ctx = g_hash_table_lookup(lua_classifiers, cl->subrs->name); g_assert(ctx != NULL); @@ -157,9 +157,9 @@ lua_classifier_classify(struct rspamd_classifier *cl, v = tok->data; lua_createtable(L, 3, 0); /* High word, low word, order */ - lua_pushinteger(L, (guint32) (v >> 32)); + lua_pushinteger(L, (uint32_t) (v >> 32)); lua_rawseti(L, -2, 1); - lua_pushinteger(L, (guint32) (v)); + lua_pushinteger(L, (uint32_t) (v)); lua_rawseti(L, -2, 2); lua_pushinteger(L, tok->window_idx); lua_rawseti(L, -2, 3); @@ -191,7 +191,7 @@ lua_classifier_learn_spam(struct rspamd_classifier *cl, lua_State *L; rspamd_token_t *tok; guint i; - guint64 v; + uint64_t v; ctx = g_hash_table_lookup(lua_classifiers, cl->subrs->name); g_assert(ctx != NULL); @@ -213,9 +213,9 @@ lua_classifier_learn_spam(struct rspamd_classifier *cl, v = tok->data; lua_createtable(L, 3, 0); /* High word, low word, order */ - lua_pushinteger(L, (guint32) (v >> 32)); + lua_pushinteger(L, (uint32_t) (v >> 32)); lua_rawseti(L, -2, 1); - lua_pushinteger(L, (guint32) (v)); + lua_pushinteger(L, (uint32_t) (v)); lua_rawseti(L, -2, 2); lua_pushinteger(L, tok->window_idx); lua_rawseti(L, -2, 3); |