Fixed warning C4127: conditional expression is constant

This commit is contained in:
Sam Lantinga 2024-01-19 06:35:02 -08:00
parent 1dbe54c4e6
commit 9fc1135e3b
4 changed files with 4 additions and 4 deletions

View file

@ -674,7 +674,7 @@ int SDL_PlayHapticRumble(SDL_Haptic *haptic, float strength, Uint32 length)
efx->leftright.small_magnitude = efx->leftright.large_magnitude = magnitude;
efx->leftright.length = length;
} else {
SDL_assert(0 && "This should have been caught elsewhere");
SDL_assert(!"This should have been caught elsewhere");
}
if (SDL_UpdateHapticEffect(haptic, haptic->rumble_id, &haptic->rumble_effect) < 0) {