commit f5ed45a: [Minor] Add workaround for old libicu
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 5 11:21:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-10-05 12:15:04 +0100
URL: https://github.com/rspamd/rspamd/commit/f5ed45a2cfcc73ae3ed2c9fcd25c7ba338ed1dad
[Minor] Add workaround for old libicu
---
src/libmime/mime_string.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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());
More information about the Commits
mailing list