Skip to content

Commit

Permalink
ICU-21373 Remove wrong cast to avoid CFI
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankYFTang committed Nov 9, 2020
1 parent 5d81f6f commit 9169326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icu4c/source/common/locid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ AliasReplacer::outputToString(
int32_t variantsStart = out.length();
for (int32_t i = 0; i < variants.size(); i++) {
out.append(SEP_CHAR, status)
.append((const char*)((UVector*)variants.elementAt(i)),
.append((const char*)(variants.elementAt(i)),
status);
}
T_CString_toUpperCase(out.data() + variantsStart);
Expand Down

0 comments on commit 9169326

Please sign in to comment.