summaryrefslogtreecommitdiffstats
path: root/thirdparty/icu4c/common/ulocbuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/icu4c/common/ulocbuilder.cpp')
-rw-r--r--thirdparty/icu4c/common/ulocbuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/icu4c/common/ulocbuilder.cpp b/thirdparty/icu4c/common/ulocbuilder.cpp
index 3b46647362..b8b6ce8c18 100644
--- a/thirdparty/icu4c/common/ulocbuilder.cpp
+++ b/thirdparty/icu4c/common/ulocbuilder.cpp
@@ -119,7 +119,7 @@ int32_t ulocbld_buildLocaleID(ULocaleBuilder* builder,
}
icu::Locale l = INTERNAL(builder)->build(*err);
if (U_FAILURE(*err)) { return 0; }
- int32_t length = (int32_t)(uprv_strlen(l.getName()));
+ int32_t length = static_cast<int32_t>(uprv_strlen(l.getName()));
if (0 < length && length <= bufferCapacity) {
uprv_memcpy(buffer, l.getName(), length);
}