[Scummvm-cvs-logs] scummvm master -> e7820655915674fa744cbe819dd015c08a032677
digitall
dgturner at iee.org
Mon Nov 12 04:49:48 CET 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e782065591 TONY: Fix compiler warnings in Input class.
Commit: e7820655915674fa744cbe819dd015c08a032677
https://github.com/scummvm/scummvm/commit/e7820655915674fa744cbe819dd015c08a032677
Author: D G Turner (digitall at scummvm.org)
Date: 2012-11-11T19:48:19-08:00
Commit Message:
TONY: Fix compiler warnings in Input class.
Changed paths:
engines/tony/input.cpp
diff --git a/engines/tony/input.cpp b/engines/tony/input.cpp
index 36a9082..e84da04 100644
--- a/engines/tony/input.cpp
+++ b/engines/tony/input.cpp
@@ -76,7 +76,7 @@ void RMInput::poll() {
return;
case Common::EVENT_KEYUP:
- for (int i = 0; i < _keyDown.size(); i++) {
+ for (uint i = 0; i < _keyDown.size(); i++) {
if (_keyDown[i] == _event.kbd.keycode) {
_keyDown.remove_at(i);
break;
@@ -96,7 +96,7 @@ void RMInput::poll() {
bool RMInput::getAsyncKeyState(Common::KeyCode kc) {
// The act of testing for a particular key automatically clears the state, to prevent
// the same key being registered in multiple different frames
- for (int i = 0; i < _keyDown.size(); i++) {
+ for (uint i = 0; i < _keyDown.size(); i++) {
if (_keyDown[i] == kc) {
_keyDown.remove_at(i);
return true;
More information about the Scummvm-git-logs
mailing list