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

digitall 547637+digitall at users.noreply.github.com
Wed Jun 17 05:50:24 UTC 2020


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:
c19283a76c ULTIMA8: Fix Signed vs. Unsigned Comparison Compiler Warning


Commit: c19283a76c03f84a02123c5e31ea75ba841c6d12
    https://github.com/scummvm/scummvm/commit/c19283a76c03f84a02123c5e31ea75ba841c6d12
Author: D G Turner (digitall at scummvm.org)
Date: 2020-06-17T06:47:58+01:00

Commit Message:
ULTIMA8: Fix Signed vs. Unsigned Comparison Compiler Warning

Changed paths:
    engines/ultima/ultima8/usecode/uc_machine.cpp


diff --git a/engines/ultima/ultima8/usecode/uc_machine.cpp b/engines/ultima/ultima8/usecode/uc_machine.cpp
index b9f6e5bbb7..5a8d51cdb4 100644
--- a/engines/ultima/ultima8/usecode/uc_machine.cpp
+++ b/engines/ultima/ultima8/usecode/uc_machine.cpp
@@ -2266,7 +2266,7 @@ uint16 UCMachine::ptrToObject(uint32 ptr) {
 			perr << "Trying to access stack of non-existent "
 			     << "process (pid: " << segment << ")" << Std::endl;
 			return 0;
-		} else if (proc->_stack.getSize() < offset + 2) {
+		} else if (proc->_stack.getSize() < (uint32)offset + 2) {
 			perr << "Trying to access past end of stack offset " << offset
 			     << " (size: " << proc->_stack.getSize()
 				 << ") process (pid: " << segment << ")" << Std::endl;




More information about the Scummvm-git-logs mailing list