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

digitall noreply at scummvm.org
Tue Nov 30 15:22:05 UTC 2021


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:
cfdd7e2d14 HYPNO: Fix GCC Signed vs. Unsigned Compiler Warnings


Commit: cfdd7e2d147dba7719973543a6facc1e381bde27
    https://github.com/scummvm/scummvm/commit/cfdd7e2d147dba7719973543a6facc1e381bde27
Author: D G Turner (digitall at scummvm.org)
Date: 2021-11-30T15:21:22Z

Commit Message:
HYPNO: Fix GCC Signed vs. Unsigned Compiler Warnings

Changed paths:
    engines/hypno/arcade.cpp


diff --git a/engines/hypno/arcade.cpp b/engines/hypno/arcade.cpp
index 0ec21cc5e6..ae6e1eebbb 100644
--- a/engines/hypno/arcade.cpp
+++ b/engines/hypno/arcade.cpp
@@ -105,7 +105,7 @@ void HypnoEngine::drawHealth() { error("Function \"%s\" not implemented", __FUNC
 void HypnoEngine::drawShoot(const Common::Point &target) { error("Function \"%s\" not implemented", __FUNCTION__); }
 
 void HypnoEngine::hitPlayer() {
-	if ( _playerFrameSep < _playerFrames.size()){
+	if ( _playerFrameSep < (int)_playerFrames.size()){
 		if (_playerFrameIdx < _playerFrameSep)
 			_playerFrameIdx = _playerFrameSep;
 	} else {
@@ -265,7 +265,7 @@ void HypnoEngine::runArcade(ArcadeShooting *arc) {
 					if (it->name == si.name) {
 
 						if (it->animation == "NONE") {
-							if (it->name[0] == _currentPlayerPosition) {
+							if ((uint32)(it->name[0]) == _currentPlayerPosition) {
 								_health = _health - it->attackWeight;
 								hitPlayer();
 							}




More information about the Scummvm-git-logs mailing list