We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfe7d7 commit 37e6d13Copy full SHA for 37e6d13
mojoal.c
@@ -2477,7 +2477,7 @@ static const ALCchar *calculate_sdl_device_list(const int iscapture)
2477
ptr += cpy + 1; // skip past null char.
2478
avail -= cpy + 1;
2479
2480
- if (SDL_InitSubSystem(SDL_INIT_AUDIO) == -1) {
+ if (!SDL_InitSubSystem(SDL_INIT_AUDIO)) {
2481
return NULL;
2482
}
2483
tests/testposition.c
@@ -254,7 +254,7 @@ int main(int argc, char **argv)
254
return 1;
255
256
257
- if (SDL_Init(SDL_INIT_VIDEO) == -1) {
+ if (!SDL_Init(SDL_INIT_VIDEO)) {
258
fprintf(stderr, "SDL_Init(SDL_INIT_VIDEO) failed: %s\n", SDL_GetError());
259
return 2;
260
0 commit comments