[Scummvm-git-logs] scummvm master -> 420cbaf8b0bcbc13fd4fa52e01adc27376156599

digitall 547637+digitall at users.noreply.github.com
Mon Sep 30 04:22:37 CEST 2019


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:
420cbaf8b0 SCI: Fix MSVC Warning


Commit: 420cbaf8b0bcbc13fd4fa52e01adc27376156599
    https://github.com/scummvm/scummvm/commit/420cbaf8b0bcbc13fd4fa52e01adc27376156599
Author: D G Turner (digitall at scummvm.org)
Date: 2019-09-30T03:15:47+01:00

Commit Message:
SCI: Fix MSVC Warning

Changed paths:
    engines/sci/engine/scriptdebug.cpp


diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp
index bf6372b..c579239 100644
--- a/engines/sci/engine/scriptdebug.cpp
+++ b/engines/sci/engine/scriptdebug.cpp
@@ -218,7 +218,7 @@ reg_t disassemble(EngineState *s, reg_t pos, const Object *obj, bool printBWTag,
 					if (obj != nullptr) {
 						const Object *const super = obj->getClass(s->_segMan);
 						assert(super);
-						if (param_value / 2 < super->getVarCount()) {
+						if ((param_value / 2) < (uint16)super->getVarCount()) {
 							selectorName = kernel->getSelectorName(super->getVarSelector(param_value / 2)).c_str();
 						} else {
 							selectorName = "<invalid>";





More information about the Scummvm-git-logs mailing list