From ce81c5345d7c8c017e70472dfe043b082cefee43 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Fri, 14 Jul 2017 11:59:38 +0100 Subject: SLUDGE: Fix Unsigned vs. Signed Comparison Compiler Warnings. --- engines/sludge/zbuffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sludge/zbuffer.cpp') 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(); -- cgit v1.2.3