From 15819612f782878fb2f66f4b55de330a659e7ed1 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Thu, 29 May 2025 09:22:42 +0200 Subject: [PATCH] Fix semicolon near end of conditional --- input/drivers_joypad/xinput_hybrid_joypad.c | 4 ++-- input/drivers_joypad/xinput_joypad.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/input/drivers_joypad/xinput_hybrid_joypad.c b/input/drivers_joypad/xinput_hybrid_joypad.c index 681f11d714..5a331cbe8e 100644 --- a/input/drivers_joypad/xinput_hybrid_joypad.c +++ b/input/drivers_joypad/xinput_hybrid_joypad.c @@ -712,14 +712,14 @@ static bool xinput_joypad_rumble(unsigned pad, /* Rumble state unchanged? */ if ( (new_state.wLeftMotorSpeed == state->wLeftMotorSpeed) - && (new_state.wRightMotorSpeed == state->wRightMotorSpeed)); + && (new_state.wRightMotorSpeed == state->wRightMotorSpeed)) return true; now = clock(); time_since_last_rumble = (double)(now - last_rumble_time[xuser]) / CLOCKS_PER_SEC; /* Rumble interval unelapsed? */ - if (time_since_last_rumble < RUMBLE_INTERVAL); + if (time_since_last_rumble < RUMBLE_INTERVAL) return true; if (g_XInputSetState) diff --git a/input/drivers_joypad/xinput_joypad.c b/input/drivers_joypad/xinput_joypad.c index c15fd72a4e..d400e1acec 100644 --- a/input/drivers_joypad/xinput_joypad.c +++ b/input/drivers_joypad/xinput_joypad.c @@ -437,7 +437,7 @@ static bool xinput_joypad_rumble(unsigned pad, /* Rumble state unchanged? */ if ( (new_state.wLeftMotorSpeed == state->wLeftMotorSpeed) - && (new_state.wRightMotorSpeed == state->wRightMotorSpeed)); + && (new_state.wRightMotorSpeed == state->wRightMotorSpeed)) return true; now = clock();