Explorar el Código

test/loopwavequeue.c: minor warning fix (SDL_AudioDeviceID is unsigned)

Ozkan Sezer hace 3 años
padre
commit
742e356180
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test/loopwavequeue.c

+ 1 - 1
test/loopwavequeue.c

@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
     /* Initialize fillerup() variables */
     /* Initialize fillerup() variables */
     g_audio_id = SDL_OpenAudioDevice(NULL, 0, &wave.spec, NULL, 0);
     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_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open audio: %s\n", SDL_GetError());
         SDL_free(wave.sound);
         SDL_free(wave.sound);
         quit(2);
         quit(2);