aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/zbuffer.cpp
diff options
context:
space:
mode:
authorD G Turner2017-07-14 11:59:38 +0100
committerD G Turner2017-07-14 11:59:38 +0100
commitce81c5345d7c8c017e70472dfe043b082cefee43 (patch)
treec9cfd7ea2ad1afe033520d8ec8fd957d6d27c30d /engines/sludge/zbuffer.cpp
parent251ae00a11a3b1e38c0882efaff3b705fb7a237f (diff)
downloadscummvm-rg350-ce81c5345d7c8c017e70472dfe043b082cefee43.tar.gz
scummvm-rg350-ce81c5345d7c8c017e70472dfe043b082cefee43.tar.bz2
scummvm-rg350-ce81c5345d7c8c017e70472dfe043b082cefee43.zip
SLUDGE: Fix Unsigned vs. Signed Comparison Compiler Warnings.
Diffstat (limited to 'engines/sludge/zbuffer.cpp')
-rw-r--r--engines/sludge/zbuffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/zbuffer.cpp b/engines/sludge/zbuffer.cpp
index 6ee8f7a31c..18094fb0df 100644
--- a/engines/sludge/zbuffer.cpp
+++ b/engines/sludge/zbuffer.cpp
@@ -99,7 +99,7 @@ bool setZBuffer(int num) {
if (bigDataFile->readByte() != 'b')
return fatal("Not a Z-buffer file");
- int width, height;
+ uint width, height;
switch (bigDataFile->readByte()) {
case 0:
width = 640;
@@ -140,8 +140,8 @@ bool setZBuffer(int num) {
zBuffer.sprites[i].create(picWidth, picHeight, *g_sludge->getScreenPixelFormat());
}
- for (int y = 0; y < sceneHeight; y++) {
- for (int x = 0; x < sceneWidth; x++) {
+ for (uint y = 0; y < sceneHeight; y++) {
+ for (uint x = 0; x < sceneWidth; x++) {
int n;
if (stillToGo == 0) {
n = bigDataFile->readByte();