From f5ed45a2cfcc73ae3ed2c9fcd25c7ba338ed1dad Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 5 Oct 2021 12:15:04 +0100 Subject: [PATCH] [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 41d2f5f7ef..27483ce609 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()); -- 2.47.3