X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/249c4c5ea9376c24572daf9c2effa7484a282f14..3d1f044b704633e2e541231cd17ae9ecf9ad5c7a:/icuSources/io/ustream.cpp diff --git a/icuSources/io/ustream.cpp b/icuSources/io/ustream.cpp index 948521a7..51676ea0 100644 --- a/icuSources/io/ustream.cpp +++ b/icuSources/io/ustream.cpp @@ -123,7 +123,7 @@ operator>>(STD_ISTREAM& stream, UnicodeString& str) /* Was the character consumed? */ if (us != uBuffer) { /* Reminder: ibm-1390 & JISX0213 can output 2 Unicode code points */ - int32_t uBuffSize = us-uBuffer; + int32_t uBuffSize = static_cast(us-uBuffer); int32_t uBuffIdx = 0; while (uBuffIdx < uBuffSize) { U16_NEXT(uBuffer, uBuffIdx, uBuffSize, ch32);