From b462027c5317fe518160c9b01c4739b84426a1f0 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 26 Jan 2023 22:05:47 +0300 Subject: [PATCH] SDL_test_common.c: minor warning fix (SDL_AudioDeviceID is unsigned) --- src/test/SDL_test_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c index 6aeb65c9c4..9bf5a85e5e 100644 --- a/src/test/SDL_test_common.c +++ b/src/test/SDL_test_common.c @@ -1343,7 +1343,7 @@ SDLTest_CommonInit(SDLTest_CommonState *state) } state->audio_id = SDL_OpenAudioDevice(NULL, 0, &state->audiospec, NULL, 0); - if (state->audio_id <= 0) { + if (!state->audio_id) { SDL_Log("Couldn't open audio: %s\n", SDL_GetError()); return SDL_FALSE; }