mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
ue2string: fix broken function type in upperString
Silences warning from ubsan.
This commit is contained in:
parent
f532b89776
commit
6c1143a264
@ -129,7 +129,9 @@ string dumpString(const ue2_literal &lit) {
|
||||
#endif
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user