[Scummvm-git-logs] scummvm master -> 4e6592c7f80c636b20d1bd495f7f16ea3e2d5208
lephilousophe
noreply at scummvm.org
Mon Jun 16 07:14:56 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:
4e6592c7f8 M4: Fix int32 vs int discrepancies
Commit: 4e6592c7f80c636b20d1bd495f7f16ea3e2d5208
https://github.com/scummvm/scummvm/commit/4e6592c7f80c636b20d1bd495f7f16ea3e2d5208
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-06-16T08:57:57+02:00
Commit Message:
M4: Fix int32 vs int discrepancies
Changed paths:
engines/m4/graphics/krn_pal.cpp
diff --git a/engines/m4/graphics/krn_pal.cpp b/engines/m4/graphics/krn_pal.cpp
index 3ebbdb1c472..903995b1047 100644
--- a/engines/m4/graphics/krn_pal.cpp
+++ b/engines/m4/graphics/krn_pal.cpp
@@ -800,9 +800,9 @@ void DAC_tint_range(const RGB8 *tintColor, int32 percent, int32 firstPalEntry, i
b = _G(master_palette)[i].b + (MulSF16(percent, db) >> 16);
// Check for under/overflow
- r = CLIP(r, 0, 255);
- g = CLIP(g, 0, 255);
- b = CLIP(b, 0, 255);
+ r = CLIP(r, int32(0), int32(255));
+ g = CLIP(g, int32(0), int32(255));
+ b = CLIP(b, int32(0), int32(255));
color.r = (byte)r;
color.g = (byte)g;
@@ -840,9 +840,9 @@ void DAC_tint_range(const RGB8 *tintColor, int32 percent, int32 firstPalEntry, i
b = (_G(master_palette)[i].b - (db >> 16));
// Check for under/overflow
- r = CLIP(r, 0, 255);
- g = CLIP(g, 0, 255);
- b = CLIP(b, 0, 255);
+ r = CLIP(r, int32(0), int32(255));
+ g = CLIP(g, int32(0), int32(255));
+ b = CLIP(b, int32(0), int32(255));
color.r = (byte)r;
color.g = (byte)g;
More information about the Scummvm-git-logs
mailing list