[Scummvm-git-logs] scummvm master -> 88afac52bd2c7a32874884f593fcdd8634c4f15e

bluegr noreply at scummvm.org
Fri Jun 20 05:43:15 UTC 2025


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

Summary:
88afac52bd COMMON: Remove always-true asserts on base string


Commit: 88afac52bd2c7a32874884f593fcdd8634c4f15e
    https://github.com/scummvm/scummvm/commit/88afac52bd2c7a32874884f593fcdd8634c4f15e
Author: Matthew Jimenez (matthew.jimenez at outlook.com)
Date: 2025-06-20T08:43:11+03:00

Commit Message:
COMMON: Remove always-true asserts on base string

Changed paths:
    common/str-base.h


diff --git a/common/str-base.h b/common/str-base.h
index 35efa52c8e9..1736f1b2e10 100644
--- a/common/str-base.h
+++ b/common/str-base.h
@@ -189,7 +189,6 @@ public:
 	 */
 	value_type &operator[](size_t idx) {
 		assert(_str);
-		assert(idx >= 0);
 		assert(idx < _size);
 		return _str[idx];
 	}
@@ -199,7 +198,6 @@ public:
 	 */
 	value_type operator[](size_t idx) const {
 		assert(_str);
-		assert(idx >= 0);
 		assert(idx < _size);
 		return _str[idx];
 	}




More information about the Scummvm-git-logs mailing list