Browse Source

[Minor] One more fix for old libicu

tags/3.1
Vsevolod Stakhov 2 years ago
parent
commit
2e144202c1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/libmime/mime_string.hxx

+ 2
- 2
src/libmime/mime_string.hxx View File

@@ -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);
}

Loading…
Cancel
Save