Browse Source

Fixed warning C4245: 'initializing': conversion from 'int' to 'SDL_AudioDeviceID', signed/unsigned mismatch

Sam Lantinga 1 năm trước cách đây
mục cha
commit
9989f92eee
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/testautomation_audio.c

+ 1 - 1
test/testautomation_audio.c

@@ -54,7 +54,7 @@ static void SDLCALL audio_testCallback(void *userdata, Uint8 *stream, int len)
 }
 #endif
 
-static SDL_AudioDeviceID g_audio_id = -1;
+static SDL_AudioDeviceID g_audio_id = 0;
 
 /* Test case functions */