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
This commit is contained in:
@@ -189,7 +189,7 @@ wxPoint wxJoystick::GetPosition() const
|
|||||||
}
|
}
|
||||||
int wxJoystick::GetPosition(unsigned int axis) 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)
|
if (m_thread)
|
||||||
return m_thread->m_axe[axis];
|
return m_thread->m_axe[axis];
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user