ue2string: fix broken function type in upperString

Silences warning from ubsan.
This commit is contained in:
Justin Viiret 2016-05-06 14:20:38 +10:00 committed by Matthew Barr
parent f532b89776
commit 6c1143a264

View File

@ -129,7 +129,9 @@ string dumpString(const ue2_literal &lit) {
#endif #endif
void upperString(string &s) { void upperString(string &s) {
transform(s.begin(), s.end(), s.begin(), (int(*)(int)) mytoupper); for (auto &c : s) {
c = mytoupper(c);
}
} }
size_t maxStringOverlap(const string &a, const string &b, bool nocase) { size_t maxStringOverlap(const string &a, const string &b, bool nocase) {