From d963e3242fd3a958eca59016031c2b17168bc004 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 26 May 2011 21:42:55 +0000 Subject: [PATCH] ICU-8601 try to fix build on platforms where UChar != uint16_t X-SVN-Rev: 30151 --- icu4c/source/common/ucase.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/icu4c/source/common/ucase.cpp b/icu4c/source/common/ucase.cpp index d5eb60ede9..2cf88c4e0f 100644 --- a/icu4c/source/common/ucase.cpp +++ b/icu4c/source/common/ucase.cpp @@ -33,7 +33,7 @@ struct UCaseProps { UDataMemory *mem; const int32_t *indexes; const uint16_t *exceptions; - const UChar *unfold; + const uint16_t *unfold; UTrie2 trie; uint8_t formatVersion[4]; @@ -899,7 +899,7 @@ ucase_toFullLower(const UCaseProps *csp, UChar32 c, full&=UCASE_FULL_LOWER; if(full!=0) { /* set the output pointer to the lowercase mapping */ - *pString=pe+1; + *pString=reinterpret_cast(pe+1); /* return the string length */ return full; @@ -987,7 +987,7 @@ toUpperOrTitle(const UCaseProps *csp, UChar32 c, if(full!=0) { /* set the output pointer to the result string */ - *pString=pe; + *pString=reinterpret_cast(pe); /* return the string length */ return full; @@ -1178,7 +1178,7 @@ ucase_toFullFolding(const UCaseProps *csp, UChar32 c, if(full!=0) { /* set the output pointer to the result string */ - *pString=pe; + *pString=reinterpret_cast(pe); /* return the string length */ return full;