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

digitall noreply at scummvm.org
Sat May 7 18:13:24 UTC 2022


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:
ae776639e0 TINSEL: Fix GCC Signed vs. Unsigned Comparison Compiler Warnings


Commit: ae776639e02d6b15759e11b638081bdbfa7350dc
    https://github.com/scummvm/scummvm/commit/ae776639e02d6b15759e11b638081bdbfa7350dc
Author: D G Turner (digitall at scummvm.org)
Date: 2022-05-07T19:12:53+01:00

Commit Message:
TINSEL: Fix GCC Signed vs. Unsigned Comparison Compiler Warnings

Changed paths:
    engines/tinsel/scene.cpp


diff --git a/engines/tinsel/scene.cpp b/engines/tinsel/scene.cpp
index 82fac9e9e9c..e77ec484754 100644
--- a/engines/tinsel/scene.cpp
+++ b/engines/tinsel/scene.cpp
@@ -542,7 +542,7 @@ void SetView(int sceneId, int scale) {
 	int i = 0;
 	CAMERA_STRUC *pCamera = (CAMERA_STRUC *)_vm->_handle->LockMem(g_tempStruc.hCamera);
 	for (i = 0; i < g_tempStruc.numCameras; ++i, ++pCamera) {
-		if (sceneId == FROM_32(pCamera->sceneId)) {
+		if (sceneId == (int)FROM_32(pCamera->sceneId)) {
 			// set camera
 			SetSysVar(SV_SPRITER_SCENE_ID, sceneId);
 			break;
@@ -556,7 +556,7 @@ void SetView(int sceneId, int scale) {
 
 	LIGHT_STRUC *pLight = (LIGHT_STRUC *)_vm->_handle->LockMem(g_tempStruc.hLight);
 	for (i = 0; i < g_tempStruc.numLights; ++i, ++pLight) {
-		if (sceneId == FROM_32(pLight->sceneId)) {
+		if (sceneId == (int)FROM_32(pLight->sceneId)) {
 			// set light
 			break;
 		}




More information about the Scummvm-git-logs mailing list