src/SDL.c
changeset 10925 4de9d54bbc87
parent 10737 3406a0f8b041
child 10954 b2804f1267bb
     1.1 --- a/src/SDL.c	Wed Mar 01 15:05:54 2017 -0800
     1.2 +++ b/src/SDL.c	Thu Mar 02 13:33:04 2017 -0500
     1.3 @@ -78,7 +78,7 @@
     1.4  {
     1.5      int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
     1.6      SDL_assert(SDL_SubsystemRefCount[subsystem_index] < 255);
     1.7 -    return (SDL_SubsystemRefCount[subsystem_index] == 0);
     1.8 +    return (SDL_SubsystemRefCount[subsystem_index] == 0) ? SDL_TRUE : SDL_FALSE;
     1.9  }
    1.10  
    1.11  /* Private helper to check if a system needs to be quit. */
    1.12 @@ -92,7 +92,7 @@
    1.13      /* If we're in SDL_Quit, we shut down every subsystem, even if refcount
    1.14       * isn't zero.
    1.15       */
    1.16 -    return SDL_SubsystemRefCount[subsystem_index] == 1 || SDL_bInMainQuit;
    1.17 +    return (SDL_SubsystemRefCount[subsystem_index] == 1 || SDL_bInMainQuit) ? SDL_TRUE : SDL_FALSE;
    1.18  }
    1.19  
    1.20  void