From: Andy Heninger Date: Wed, 24 Jun 2015 23:21:11 +0000 (+0000) Subject: ICU-11751 Fix Windows build problem with revised reslist.cpp, again. X-Git-Tag: milestone-59-0-1~1040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59a70fdd6e2e85b7c545d2830d43847422766149;p=icu ICU-11751 Fix Windows build problem with revised reslist.cpp, again. X-SVN-Rev: 37622 --- diff --git a/icu4c/source/tools/genrb/reslist.cpp b/icu4c/source/tools/genrb/reslist.cpp index 56b0a991506..f4d7e1f5ff1 100644 --- a/icu4c/source/tools/genrb/reslist.cpp +++ b/icu4c/source/tools/genrb/reslist.cpp @@ -1564,7 +1564,7 @@ string_writeUTF16v2(struct SRBRoot *bundle, StringResource *res, int32_t utf16Le } // u_memcpy note: Type of bundle->f16BitUnits is (uint16_t *). u_memcpy wants (UChar *). // On Windows, these are different, UChar is typedefed to wchar_t. - u_memcpy(static_cast(bundle->f16BitUnits + utf16Length), res->getBuffer(), length + 1); + u_memcpy((UChar *)(bundle->f16BitUnits + utf16Length), res->getBuffer(), length + 1); return utf16Length + length + 1; }