Skip to content

Commit 37e6d13

Browse files
committed
sdl3: Fixed some SDL_Init* calls that now return bool instead of int.
1 parent 1bfe7d7 commit 37e6d13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mojoal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2477,7 +2477,7 @@ static const ALCchar *calculate_sdl_device_list(const int iscapture)
24772477
ptr += cpy + 1; // skip past null char.
24782478
avail -= cpy + 1;
24792479

2480-
if (SDL_InitSubSystem(SDL_INIT_AUDIO) == -1) {
2480+
if (!SDL_InitSubSystem(SDL_INIT_AUDIO)) {
24812481
return NULL;
24822482
}
24832483

tests/testposition.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ int main(int argc, char **argv)
254254
return 1;
255255
}
256256

257-
if (SDL_Init(SDL_INIT_VIDEO) == -1) {
257+
if (!SDL_Init(SDL_INIT_VIDEO)) {
258258
fprintf(stderr, "SDL_Init(SDL_INIT_VIDEO) failed: %s\n", SDL_GetError());
259259
return 2;
260260
}

0 commit comments

Comments
 (0)