[Scummvm-git-logs] scummvm master -> f20a589a74cc374446065b4c9f1bdbdf8a3e26d6
digitall
noreply at scummvm.org
Mon Feb 17 13:18:08 UTC 2025
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:
f20a589a74 WAGE: Fix Enumerated vs. Non-Enumerated Type Comparison GCC Compiler Warnings
Commit: f20a589a74cc374446065b4c9f1bdbdf8a3e26d6
https://github.com/scummvm/scummvm/commit/f20a589a74cc374446065b4c9f1bdbdf8a3e26d6
Author: D G Turner (digitall at scummvm.org)
Date: 2025-02-17T13:17:58Z
Commit Message:
WAGE: Fix Enumerated vs. Non-Enumerated Type Comparison GCC Compiler Warnings
Changed paths:
engines/wage/design.cpp
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp
index 3810f69e0ae..b29539b4cc9 100644
--- a/engines/wage/design.cpp
+++ b/engines/wage/design.cpp
@@ -239,7 +239,7 @@ class PlotDataPrimitives : public Graphics::Primitives {
*((byte *)p->surface->getBasePtr(xu, yu)) =
(pat[yu % 8] & (1 << (7 - xu % 8))) ?
- color : kColorWhite;
+ color : (byte)kColorWhite;
}
} else {
int x1 = x - p->thickness / 2;
@@ -254,7 +254,7 @@ class PlotDataPrimitives : public Graphics::Primitives {
uint yu = (uint)y;
*((byte *)p->surface->getBasePtr(xu, yu)) =
(pat[yu % 8] & (1 << (7 - xu % 8))) ?
- color : kColorWhite;
+ color : (byte)kColorWhite;
}
}
}
@@ -295,7 +295,7 @@ class PlotDataCirclePrimitives : public Graphics::Primitives {
uint yu = (uint)y;
*((byte *)p->surface->getBasePtr(xu, yu)) =
- (pat[yu % 8] & (1 << (7 - xu % 8))) ? color : kColorWhite;
+ (pat[yu % 8] & (1 << (7 - xu % 8))) ? color : (byte)kColorWhite;
}
} else {
int x1 = x - p->thickness / 2;
More information about the Scummvm-git-logs
mailing list