summaryrefslogtreecommitdiffstats
path: root/thirdparty/icu4c/common/utext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/icu4c/common/utext.cpp')
-rw-r--r--thirdparty/icu4c/common/utext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/icu4c/common/utext.cpp b/thirdparty/icu4c/common/utext.cpp
index eb0a6984bd..0a4248c4e4 100644
--- a/thirdparty/icu4c/common/utext.cpp
+++ b/thirdparty/icu4c/common/utext.cpp
@@ -738,7 +738,7 @@ pinIndex(int64_t &index, int64_t limit) {
} else if (index > limit) {
index = limit;
}
- return (int32_t)index;
+ return static_cast<int32_t>(index);
}
@@ -1937,7 +1937,7 @@ repTextReplace(UText *ut,
}
// Do the actual replace operation using methods of the Replaceable class
- UnicodeString replStr((UBool)(length<0), src, length); // read-only alias
+ UnicodeString replStr(length < 0, src, length); // read-only alias
rep->handleReplaceBetween(start32, limit32, replStr);
int32_t newLength = rep->length();
int32_t lengthDelta = newLength - oldLength;