[Scummvm-cvs-logs] SF.net SVN: scummvm: [24651] scummvm/trunk/engines/agi

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Nov 7 22:09:22 CET 2006


Revision: 24651
          http://svn.sourceforge.net/scummvm/?rev=24651&view=rev
Author:   fingolfin
Date:     2006-11-07 13:09:18 -0800 (Tue, 07 Nov 2006)

Log Message:
-----------
fix (un)signedness warnings

Modified Paths:
--------------
    scummvm/trunk/engines/agi/keyboard.cpp
    scummvm/trunk/engines/agi/text.h

Modified: scummvm/trunk/engines/agi/keyboard.cpp
===================================================================
--- scummvm/trunk/engines/agi/keyboard.cpp	2006-11-07 20:55:05 UTC (rev 24650)
+++ scummvm/trunk/engines/agi/keyboard.cpp	2006-11-07 21:09:18 UTC (rev 24651)
@@ -171,8 +171,8 @@
 			}
 		}
 
-		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 @@
 
 	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);

Modified: scummvm/trunk/engines/agi/text.h
===================================================================
--- scummvm/trunk/engines/agi/text.h	2006-11-07 20:55:05 UTC (rev 24650)
+++ scummvm/trunk/engines/agi/text.h	2006-11-07 21:09:18 UTC (rev 24651)
@@ -74,7 +74,7 @@
 
 	int _wordNumber;
 
-	int _wordPosition;
+	uint _wordPosition;
 
 	bool _nextIsActive;
 	bool _addIsActive;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list