aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-05 12:15:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-05 12:15:04 +0100
commitf5ed45a2cfcc73ae3ed2c9fcd25c7ba338ed1dad (patch)
tree82a0f2447e887b8a75fc6f58caa791bd46773e8d /src/libmime
parentd79fdd8a405ddc495fa1245cc9c22ec119f7787d (diff)
downloadrspamd-f5ed45a2cfcc73ae3ed2c9fcd25c7ba338ed1dad.tar.gz
rspamd-f5ed45a2cfcc73ae3ed2c9fcd25c7ba338ed1dad.zip
[Minor] Add workaround for old libicu
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/mime_string.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_string.hxx b/src/libmime/mime_string.hxx
index 41d2f5f7e..27483ce60 100644
--- a/src/libmime/mime_string.hxx
+++ b/src/libmime/mime_string.hxx
@@ -501,7 +501,7 @@ private:
/* This is fast path */
const auto *p = str;
const auto *end = str + len;
- std::ptrdiff_t err_offset;
+ std::int32_t err_offset; // We have to use int32_t here as old libicu is brain-damaged
auto orig_size = storage.size();
storage.reserve(len + storage.size());