[Scummvm-git-logs] scummvm master -> ad40dad8ac6bcd255b8b6df9e469cf3bf9a30242
bluegr
noreply at scummvm.org
Tue Feb 3 20:48:25 UTC 2026
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:
ad40dad8ac IMAGE: Fix signed/unsigned warnings
Commit: ad40dad8ac6bcd255b8b6df9e469cf3bf9a30242
https://github.com/scummvm/scummvm/commit/ad40dad8ac6bcd255b8b6df9e469cf3bf9a30242
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-02-03T22:46:08+02:00
Commit Message:
IMAGE: Fix signed/unsigned warnings
Changed paths:
image/bmp.cpp
image/png.cpp
diff --git a/image/bmp.cpp b/image/bmp.cpp
index ad13f262ca5..089ca899dda 100644
--- a/image/bmp.cpp
+++ b/image/bmp.cpp
@@ -205,7 +205,7 @@ bool writeBMP(Common::WriteStream &out, const Graphics::Surface &input, const by
/* === PALETTE === */
// Input palette: RGBRGBRGB...
// BMP palette: B G R 0
- for (int i = 0; i < paletteCount; i++) {
+ for (uint i = 0; i < paletteCount; i++) {
out.writeByte(palette[i * 3 + 2]); // B
out.writeByte(palette[i * 3 + 1]); // G
out.writeByte(palette[i * 3 + 0]); // R
diff --git a/image/png.cpp b/image/png.cpp
index 67c441fc25f..97070e6068c 100644
--- a/image/png.cpp
+++ b/image/png.cpp
@@ -350,7 +350,7 @@ bool writePNG(Common::WriteStream &out, const Graphics::Surface &input, const by
Common::Array<png_color> colorPtr;
if (colorType == PNG_COLOR_TYPE_PALETTE) {
colorPtr.resize(paletteCount);
- for (int i = 0; i < paletteCount; i++) {
+ for (uint i = 0; i < paletteCount; i++) {
colorPtr[i].red = palette[i * 3 + 0];
colorPtr[i].green = palette[i * 3 + 1];
colorPtr[i].blue = palette[i * 3 + 2];
More information about the Scummvm-git-logs
mailing list