mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-29 07:59:11 +00:00
SDL_test_common.c: minor warning fix (SDL_AudioDeviceID is unsigned)
This commit is contained in:
parent
364db52ca3
commit
b462027c53
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue