diff options
Diffstat (limited to 'src/unistring.h')
-rw-r--r-- | src/unistring.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unistring.h b/src/unistring.h index 577e0da4..4be36b0d 100644 --- a/src/unistring.h +++ b/src/unistring.h @@ -92,8 +92,9 @@ public: if (this_len) utf8::unchecked::utf32to8 - (utf32chars.begin() + begin, - utf32chars.begin() + begin + + (utf32chars.begin() + static_cast<std::string::difference_type>(begin), + utf32chars.begin() + static_cast<std::string::difference_type>(begin) + + static_cast<std::string::difference_type> (len ? (len > this_len ? this_len : len) : this_len), std::back_inserter(utf8result)); |