summaryrefslogtreecommitdiffstats
path: root/thirdparty/icu4c/common/unicode/stringtriebuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/icu4c/common/unicode/stringtriebuilder.h')
-rw-r--r--thirdparty/icu4c/common/unicode/stringtriebuilder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/icu4c/common/unicode/stringtriebuilder.h b/thirdparty/icu4c/common/unicode/stringtriebuilder.h
index 429d7883f1..62108dfe3e 100644
--- a/thirdparty/icu4c/common/unicode/stringtriebuilder.h
+++ b/thirdparty/icu4c/common/unicode/stringtriebuilder.h
@@ -346,7 +346,7 @@ protected:
virtual void write(StringTrieBuilder &builder) override;
// Adds a unit with a final value.
void add(int32_t c, int32_t value) {
- units[length]=(char16_t)c;
+ units[length] = static_cast<char16_t>(c);
equal[length]=nullptr;
values[length]=value;
++length;
@@ -354,7 +354,7 @@ protected:
}
// Adds a unit which leads to another match node.
void add(int32_t c, Node *node) {
- units[length]=(char16_t)c;
+ units[length] = static_cast<char16_t>(c);
equal[length]=node;
values[length]=0;
++length;