aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-06 08:56:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-06 08:56:53 +0100
commit2e144202c1b0d229e9228d8dd24b0f6627c31dcf (patch)
tree44530ef3236ce0f3b3a09d8ab124c894bd68ecf2
parentd6323c9c3dcfb8e4f9e6fc2570f36ee20ea223ef (diff)
downloadrspamd-2e144202c1b0d229e9228d8dd24b0f6627c31dcf.tar.gz
rspamd-2e144202c1b0d229e9228d8dd24b0f6627c31dcf.zip
[Minor] One more fix for old libicu
-rw-r--r--src/libmime/mime_string.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/mime_string.hxx b/src/libmime/mime_string.hxx
index 27483ce60..c6041a778 100644
--- a/src/libmime/mime_string.hxx
+++ b/src/libmime/mime_string.hxx
@@ -542,7 +542,7 @@ private:
}
auto append_c_string_filtered(const CharT* str, std::size_t len) -> std::size_t {
- std::ptrdiff_t i = 0, o = 0;
+ std::int32_t i = 0; // We have to use int32_t here as old libicu is brain-damaged
UChar32 uc;
char tmp[4];
auto orig_size = storage.size();
@@ -568,7 +568,7 @@ private:
flags = flags | mime_string_flags::MIME_STRING_SEEN_ZEROES;
}
else {
- o = 0;
+ std::int32_t o = 0;
U8_APPEND_UNSAFE(tmp, o, uc);
storage.append(tmp, o);
}