]> granicus.if.org Git - icu/commitdiff
ICU-11751 Fix Windows build problem with revised reslist.cpp, again.
authorAndy Heninger <andy.heninger@gmail.com>
Wed, 24 Jun 2015 23:21:11 +0000 (23:21 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Wed, 24 Jun 2015 23:21:11 +0000 (23:21 +0000)
X-SVN-Rev: 37622

icu4c/source/tools/genrb/reslist.cpp

index 56b0a991506c817c435a495bb11ede49c2cb732b..f4d7e1f5ff1b25f20f5276127917c2f05061b983 100644 (file)
@@ -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<UChar *>(bundle->f16BitUnits + utf16Length), res->getBuffer(), length + 1);
+    u_memcpy((UChar *)(bundle->f16BitUnits + utf16Length), res->getBuffer(), length + 1);
     return utf16Length + length + 1;
 }