From 20ef5c562335e1f3fa45307b3f43065da0c4dfa4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 12 Jul 2010 11:09:29 +0000 Subject: SCI: Fix warning svn-id: r50818 --- engines/sci/engine/kgraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index e621e1b85a..29f7565ef9 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -790,7 +790,7 @@ void _k_GenericDrawControl(EngineState *s, reg_t controlObject, bool hilite) { mode = readSelectorValue(s->_segMan, controlObject, SELECTOR(mode)); maxChars = readSelectorValue(s->_segMan, controlObject, SELECTOR(max)); cursorPos = readSelectorValue(s->_segMan, controlObject, SELECTOR(cursor)); - if (cursorPos > text.size()) { + if (cursorPos > (int)text.size()) { // if cursor is outside of text, adjust accordingly cursorPos = text.size(); writeSelectorValue(s->_segMan, controlObject, SELECTOR(cursor), cursorPos); -- cgit v1.2.3