diff --git a/src/Input/FGJoystickInput.cxx b/src/Input/FGJoystickInput.cxx index 506de36bb..3f490f5cb 100644 --- a/src/Input/FGJoystickInput.cxx +++ b/src/Input/FGJoystickInput.cxx @@ -329,7 +329,7 @@ void FGJoystickInput::update( double dt ) FGButton &b = bindings[i].buttons[j]; b.last_dt += dt; if(b.last_dt >= b.interval_sec) { - bindings[i].buttons[j].update( modifiers, (buttons & (1 << j)) > 0 ); + bindings[i].buttons[j].update( modifiers, (buttons & (1u << j)) > 0 ); b.last_dt -= b.interval_sec; } }