From 14c13854d3cae9d93c3d148be30fb72f1eaffe55 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 18 Mar 2024 18:56:33 +0000 Subject: [Rework] Further types conversion (no functional changes) --- src/libmime/lang_detection_fasttext.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libmime/lang_detection_fasttext.cxx') diff --git a/src/libmime/lang_detection_fasttext.cxx b/src/libmime/lang_detection_fasttext.cxx index c973ed710..faa97b0fc 100644 --- a/src/libmime/lang_detection_fasttext.cxx +++ b/src/libmime/lang_detection_fasttext.cxx @@ -187,7 +187,7 @@ rspamd_fasttext_predict_result_t rspamd_lang_detection_fasttext_detect(void *ud, return nullptr; #else /* Avoid too long inputs */ - static const guint max_fasttext_input_len = 1024 * 1024; + static const unsigned int max_fasttext_input_len = 1024 * 1024; auto *real_model = FASTTEXT_MODEL_TO_C_API(ud); std::vector words_vec; words_vec.reserve(utf_words->len); @@ -215,7 +215,7 @@ void rspamd_lang_detection_fasttext_destroy(void *ud) } -guint rspamd_lang_detection_fasttext_get_nlangs(rspamd_fasttext_predict_result_t res) +unsigned int rspamd_lang_detection_fasttext_get_nlangs(rspamd_fasttext_predict_result_t res) { #ifdef WITH_FASTTEXT auto *real_res = FASTTEXT_RESULT_TO_C_API(res); -- cgit v1.2.3