X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcontrol%2Fjoystickkeyboardcontroller.cpp;h=06ffd062eef7c4b59dbc7eecc57c2f09418555b5;hb=eba5f4b45f92cb19a09fbac1a478648062480adb;hp=83cbdbced4edbddf8019054aef9bf74211b1e241;hpb=be3627a9c6fc5bb27e5297da512d59a7eb4033a2;p=supertux.git diff --git a/src/control/joystickkeyboardcontroller.cpp b/src/control/joystickkeyboardcontroller.cpp index 83cbdbced..06ffd062e 100644 --- a/src/control/joystickkeyboardcontroller.cpp +++ b/src/control/joystickkeyboardcontroller.cpp @@ -520,7 +520,7 @@ JoystickKeyboardController::check_cheatcode(const std::string& cheatcode) return false; } - for(int i = 0; i < cheatcode.size(); ++i) { + for(size_t i = 0; i < cheatcode.size(); ++i) { if(last_keys[sizeof(last_keys)-1 - i] != cheatcode[cheatcode.size()-1-i]) return false; }