From 742e35618014af51292fcdc1ab861108bf373cc0 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 26 Jan 2023 18:15:20 +0300 Subject: [PATCH] test/loopwavequeue.c: minor warning fix (SDL_AudioDeviceID is unsigned) --- test/loopwavequeue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/loopwavequeue.c b/test/loopwavequeue.c index 2107603cb..b56990fb9 100644 --- a/test/loopwavequeue.c +++ b/test/loopwavequeue.c @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) /* Initialize fillerup() variables */ g_audio_id = SDL_OpenAudioDevice(NULL, 0, &wave.spec, NULL, 0); - if (g_audio_id <= 0) { + if (!g_audio_id) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open audio: %s\n", SDL_GetError()); SDL_free(wave.sound); quit(2);