]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/joystick.cpp
move m_sizeSet out of wxWindow
[wxWidgets.git] / src / unix / joystick.cpp
index f5ad7183461923001ea753618394d541b1e3f042..15f49db961bc7ddd115bfbad4fb4feefe480df07 100644 (file)
@@ -394,7 +394,7 @@ int wxJoystick::GetNumberButtons() const
     if (m_device != -1)
         ioctl(m_device, JSIOCGBUTTONS, &nb);
 
-    if (nb > wxJS_MAX_BUTTONS)
+    if ((int)nb > wxJS_MAX_BUTTONS)
         nb = wxJS_MAX_BUTTONS;
 
     return nb;
@@ -407,7 +407,7 @@ int wxJoystick::GetNumberAxes() const
     if (m_device != -1)
         ioctl(m_device, JSIOCGAXES, &nb);
 
-    if (nb > wxJS_MAX_AXES)
+    if ((int)nb > wxJS_MAX_AXES)
         nb = wxJS_MAX_AXES;
 
     return nb;