[Scummvm-git-logs] scummvm master -> ce81c5345d7c8c017e70472dfe043b082cefee43

digitall dgturner at iee.org
Fri Jul 14 12:53:23 CEST 2017


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:
ce81c5345d SLUDGE: Fix Unsigned vs. Signed Comparison Compiler Warnings.


Commit: ce81c5345d7c8c017e70472dfe043b082cefee43
    https://github.com/scummvm/scummvm/commit/ce81c5345d7c8c017e70472dfe043b082cefee43
Author: D G Turner (digitall at scummvm.org)
Date: 2017-07-14T11:59:38+01:00

Commit Message:
SLUDGE: Fix Unsigned vs. Signed Comparison Compiler Warnings.

Changed paths:
    engines/sludge/zbuffer.cpp


diff --git a/engines/sludge/zbuffer.cpp b/engines/sludge/zbuffer.cpp
index 6ee8f7a..18094fb 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();





More information about the Scummvm-git-logs mailing list