From: Markus Scherer Date: Tue, 2 Aug 2011 17:21:02 +0000 (+0000) Subject: ICU-8744 add cast for perfect match to UnicodeString::insert(start, UChar) overload X-Git-Tag: milestone-59-0-1~4602 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cd85dd46823fc22a092f4c6dfe3e38b850e3662;p=icu ICU-8744 add cast for perfect match to UnicodeString::insert(start, UChar) overload X-SVN-Rev: 30451 --- diff --git a/icu4c/source/common/messagepattern.cpp b/icu4c/source/common/messagepattern.cpp index af1d6e41d2e..a7812ac4925 100644 --- a/icu4c/source/common/messagepattern.cpp +++ b/icu4c/source/common/messagepattern.cpp @@ -342,7 +342,7 @@ MessagePattern::autoQuoteApostropheDeep() const { for(int32_t i=count; i>0;) { const Part &part=getPart(--i); if(part.getType()==UMSGPAT_PART_TYPE_INSERT_CHAR) { - modified.insert(part.index, part.value); + modified.insert(part.index, (UChar)part.value); } } return modified;