]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add workaround for old libicu
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Oct 2021 11:15:04 +0000 (12:15 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Oct 2021 11:15:04 +0000 (12:15 +0100)
src/libmime/mime_string.hxx

index 41d2f5f7ef5447ee16298d4269f1ca30973f6c09..27483ce60911cd38880c2f7abf1187d6e0075aa4 100644 (file)
@@ -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());