diff options
author | D G Turner | 2017-07-14 11:59:38 +0100 |
---|---|---|
committer | D G Turner | 2017-07-14 11:59:38 +0100 |
commit | ce81c5345d7c8c017e70472dfe043b082cefee43 (patch) | |
tree | c9cfd7ea2ad1afe033520d8ec8fd957d6d27c30d | |
parent | 251ae00a11a3b1e38c0882efaff3b705fb7a237f (diff) | |
download | scummvm-rg350-ce81c5345d7c8c017e70472dfe043b082cefee43.tar.gz scummvm-rg350-ce81c5345d7c8c017e70472dfe043b082cefee43.tar.bz2 scummvm-rg350-ce81c5345d7c8c017e70472dfe043b082cefee43.zip |
SLUDGE: Fix Unsigned vs. Signed Comparison Compiler Warnings.
-rw-r--r-- | engines/sludge/zbuffer.cpp | 6 |
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(); |