aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2006-11-07 21:09:18 +0000
committerMax Horn2006-11-07 21:09:18 +0000
commit98e7abcbfcbac8403e9b867b37996e642de16a85 (patch)
tree1b378382655ac19ac1f1b839ab6674e24b5251f3 /engines
parent0cf2d2ffd9b4cc7bc98e4b4ade87e43f63a73274 (diff)
downloadscummvm-rg350-98e7abcbfcbac8403e9b867b37996e642de16a85.tar.gz
scummvm-rg350-98e7abcbfcbac8403e9b867b37996e642de16a85.tar.bz2
scummvm-rg350-98e7abcbfcbac8403e9b867b37996e642de16a85.zip
fix (un)signedness warnings
svn-id: r24651
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/keyboard.cpp8
-rw-r--r--engines/agi/text.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index 9c401e067c..1aabac9053 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -171,8 +171,8 @@ int handle_controller(int key) {
}
}
- if (mouse.y >= game.line_user_input * CHAR_LINES &&
- mouse.y <= (game.line_user_input + 1) * CHAR_LINES) {
+ if ((int)mouse.y >= game.line_user_input * CHAR_LINES &&
+ (int)mouse.y <= (game.line_user_input + 1) * CHAR_LINES) {
if (_text->predictiveDialog()) {
strcpy((char *)game.input_buffer, _text->_predictiveResult);
handle_keys(KEY_ENTER);
@@ -212,8 +212,8 @@ void handle_getstring(int key) {
switch (key) {
case BUTTON_LEFT:
- if (mouse.y >= stringdata.y * CHAR_LINES &&
- mouse.y <= (stringdata.y + 1) * CHAR_LINES) {
+ if ((int)mouse.y >= stringdata.y * CHAR_LINES &&
+ (int)mouse.y <= (stringdata.y + 1) * CHAR_LINES) {
if (_text->predictiveDialog()) {
strcpy(game.strings[stringdata.str], _text->_predictiveResult);
new_input_mode(INPUT_NORMAL);
diff --git a/engines/agi/text.h b/engines/agi/text.h
index ede10dbc44..3fbcce1289 100644
--- a/engines/agi/text.h
+++ b/engines/agi/text.h
@@ -74,7 +74,7 @@ private:
int _wordNumber;
- int _wordPosition;
+ uint _wordPosition;
bool _nextIsActive;
bool _addIsActive;