X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/ef6cf650f4a75c3f97de06b51fa104f2069b9ea2..a62d09fcbc8ca9da27887e04112ec143e19b1caf:/icuSources/common/ustring.cpp?ds=sidebyside diff --git a/icuSources/common/ustring.cpp b/icuSources/common/ustring.cpp index f6cccc7c..aa395035 100644 --- a/icuSources/common/ustring.cpp +++ b/icuSources/common/ustring.cpp @@ -1113,7 +1113,7 @@ u_strHasMoreChar32Than(const UChar *s, int32_t length, int32_t number) { U_CAPI UChar * U_EXPORT2 u_memcpy(UChar *dest, const UChar *src, int32_t count) { if(count > 0) { - uprv_memcpy(dest, src, count*U_SIZEOF_UCHAR); + uprv_memcpy(dest, src, (size_t)count*U_SIZEOF_UCHAR); } return dest; } @@ -1121,7 +1121,7 @@ u_memcpy(UChar *dest, const UChar *src, int32_t count) { U_CAPI UChar * U_EXPORT2 u_memmove(UChar *dest, const UChar *src, int32_t count) { if(count > 0) { - uprv_memmove(dest, src, count*U_SIZEOF_UCHAR); + uprv_memmove(dest, src, (size_t)count*U_SIZEOF_UCHAR); } return dest; }