ICU-21373 Remove wrong cast to avoid CFI

This commit is contained in:
Frank Tang 2020-11-03 16:05:50 -08:00 committed by Frank Yung-Fong Tang
parent 5d81f6f9a0
commit 916932648d

View file

@ -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);