From a2d7c6a98f52f11a3a75d61f18b64e2940f55378 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Mar 2014 15:50:07 +0000 Subject: [PATCH] Fix harmless signed/unsigned comparison warning in wxOSX wxJoystick. A better fix would probably be to make wxJoystick::GetNumberAxes() return an unsigned value. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/core/hidjoystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/core/hidjoystick.cpp b/src/osx/core/hidjoystick.cpp index 05205ac23e..e6f3a87dd2 100644 --- a/src/osx/core/hidjoystick.cpp +++ b/src/osx/core/hidjoystick.cpp @@ -189,7 +189,7 @@ wxPoint wxJoystick::GetPosition() const } int wxJoystick::GetPosition(unsigned int axis) const { - wxCHECK_MSG(axis < GetNumberAxes(), 0, "Invalid joystick axis"); + wxCHECK_MSG(axis < (unsigned)GetNumberAxes(), 0, "Invalid joystick axis"); if (m_thread) return m_thread->m_axe[axis]; return 0;