From: <ka...@us...> - 2011-09-11 16:47:00
|
Revision: 6144 http://paintown.svn.sourceforge.net/paintown/?rev=6144&view=rev Author: kazzmir Date: 2011-09-11 16:46:54 +0000 (Sun, 11 Sep 2011) Log Message: ----------- cast to unsigned Modified Paths: -------------- trunk/src/util/input/input-manager.h Modified: trunk/src/util/input/input-manager.h =================================================================== --- trunk/src/util/input/input-manager.h 2011-09-11 16:01:58 UTC (rev 6143) +++ trunk/src/util/input/input-manager.h 2011-09-11 16:46:54 UTC (rev 6144) @@ -207,7 +207,7 @@ } } - if (source.getJoystick() >= 0 && source.getJoystick() < joysticks.size()){ + if (source.getJoystick() >= 0 && (unsigned) source.getJoystick() < joysticks.size()){ Joystick * joystick = joysticks[source.getJoystick()]; if (joystick){ const std::vector<typename Joystick::Event> & joystickEvents = joystick->getEvents(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |