[Scummvm-git-logs] scummvm master -> 311784a48cd8f7211d35b5829b7617ce4ed2f04d
digitall
noreply at scummvm.org
Sun Sep 3 01:56:56 UTC 2023
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:
311784a48c SWORD1: Fix Signed vs. Unsigned GCC Compiler Warning
Commit: 311784a48cd8f7211d35b5829b7617ce4ed2f04d
https://github.com/scummvm/scummvm/commit/311784a48cd8f7211d35b5829b7617ce4ed2f04d
Author: D G Turner (digitall at scummvm.org)
Date: 2023-09-03T02:56:25+01:00
Commit Message:
SWORD1: Fix Signed vs. Unsigned GCC Compiler Warning
Changed paths:
engines/sword1/screen.cpp
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp
index 6c31e8f5f08..4e2e8ee22d5 100644
--- a/engines/sword1/screen.cpp
+++ b/engines/sword1/screen.cpp
@@ -168,9 +168,9 @@ void Screen::startFadePaletteUp(int speed) {
// Remember: whenever we are showing the palette to the outside world
// we have to shift it, because these are 6-bit values!
- uint8 shiftedPalette[768];
+ uint8 shiftedPalette[256 * 3];
- for (int i = 0; i < sizeof(shiftedPalette); i++) {
+ for (int i = 0; i < ARRAYSIZE(shiftedPalette); i++) {
shiftedPalette[i] = _currentPalette[i] << 2;
}
More information about the Scummvm-git-logs
mailing list