From 8dbcf0817aef0d2359f5e6ef9e150780df278b40 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Mar 2014 15:50:03 +0000 Subject: [PATCH] Remove redundant comparison of unsigned value with 0. This is always true and so is unnecessary. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76047 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 fdb244393e..05205ac23e 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 >=0 && axis < GetNumberAxes(), 0, "Invalid joystick axis"); + wxCHECK_MSG(axis < GetNumberAxes(), 0, "Invalid joystick axis"); if (m_thread) return m_thread->m_axe[axis]; return 0;