mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
COMMON: Fix return value of String::findLastNotOf
This commit is contained in:
parent
68ab4f4e88
commit
ff840ba47b
@ -767,7 +767,7 @@ size_t String::findFirstNotOf(const char *chars, size_t pos) const {
|
||||
size_t String::findLastNotOf(char c) const {
|
||||
for (int idx = (int)_size - 1; idx >= 0; --idx) {
|
||||
if ((*this)[idx] != c)
|
||||
return c;
|
||||
return idx;
|
||||
}
|
||||
|
||||
return npos;
|
||||
|
Loading…
x
Reference in New Issue
Block a user