[Scummvm-git-logs] scummvm master -> ff840ba47b0c4c3843c5a38df9b050499e105461

dreammaster paulfgilbert at gmail.com
Wed Feb 26 02:48:41 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
ff840ba47b COMMON: Fix return value of String::findLastNotOf


Commit: ff840ba47b0c4c3843c5a38df9b050499e105461
    https://github.com/scummvm/scummvm/commit/ff840ba47b0c4c3843c5a38df9b050499e105461
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2020-02-25T18:48:37-08:00

Commit Message:
COMMON: Fix return value of String::findLastNotOf

Changed paths:
    common/str.cpp


diff --git a/common/str.cpp b/common/str.cpp
index 1da6f0c29a..2090f464ae 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -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;




More information about the Scummvm-git-logs mailing list