aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
diff options
context:
space:
mode:
authorMax Horn2010-07-12 11:09:29 +0000
committerMax Horn2010-07-12 11:09:29 +0000
commit20ef5c562335e1f3fa45307b3f43065da0c4dfa4 (patch)
tree80d71c42c8e00df5f4bdb23401f660ff34fb96fc /engines/sci/engine/kgraphics.cpp
parente782fec85aa48b8b32f4e1e1d3677411d99899ae (diff)
downloadscummvm-rg350-20ef5c562335e1f3fa45307b3f43065da0c4dfa4.tar.gz
scummvm-rg350-20ef5c562335e1f3fa45307b3f43065da0c4dfa4.tar.bz2
scummvm-rg350-20ef5c562335e1f3fa45307b3f43065da0c4dfa4.zip
SCI: Fix warning
svn-id: r50818
Diffstat (limited to 'engines/sci/engine/kgraphics.cpp')
-rw-r--r--engines/sci/engine/kgraphics.cpp2
1 files changed, 1 insertions, 1 deletions
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);