Skip to content

Commit

Permalink
SCI: Fix MSVC Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Sep 30, 2019
1 parent d68ab5e commit 420cbaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sci/engine/scriptdebug.cpp
Expand Up @@ -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>";
Expand Down

0 comments on commit 420cbaf

Please sign in to comment.