[Scummvm-git-logs] scummvm master -> 0a938b56a69409ad3b176c9eb53914a8afef667f
dwatteau
noreply at scummvm.org
Mon Oct 6 17:55:43 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:
0a938b56a6 GRAPHICS: Use an assert() in ColorQuantizer to avoid a false-positive warning
Commit: 0a938b56a69409ad3b176c9eb53914a8afef667f
https://github.com/scummvm/scummvm/commit/0a938b56a69409ad3b176c9eb53914a8afef667f
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2025-10-06T19:53:56+02:00
Commit Message:
GRAPHICS: Use an assert() in ColorQuantizer to avoid a false-positive warning
e.g. some GCC releases may issue a warning, without this.
Changed paths:
graphics/color_quantizer.cpp
diff --git a/graphics/color_quantizer.cpp b/graphics/color_quantizer.cpp
index 649c40ec93f..68e693f675b 100644
--- a/graphics/color_quantizer.cpp
+++ b/graphics/color_quantizer.cpp
@@ -111,6 +111,7 @@ private:
if (*node == nullptr) {
*node = allocateNode(level);
if (level != _leafLevel) {
+ assert(level < kOctreeDepth - 1);
(*node)->nextNode = _reduceList[level];
_reduceList[level] = *node;
}
More information about the Scummvm-git-logs
mailing list