diff --git a/icu4c/source/common/putil.c b/icu4c/source/common/putil.c index d7bb084b5ca..0c5fa64edc3 100644 --- a/icu4c/source/common/putil.c +++ b/icu4c/source/common/putil.c @@ -1642,7 +1642,7 @@ The leftmost codepage (.xxx) wins. if ((q = uprv_strchr(p, '.')) != NULL) { /* How big will the resulting string be? */ - len = uprv_strlen(correctedPOSIXLocale) + (q-p); + len = (int32_t)(uprv_strlen(correctedPOSIXLocale) + (q-p)); uprv_strncat(correctedPOSIXLocale, p, q-p); correctedPOSIXLocale[len] = 0; }