mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 22:59:49 +00:00
Use C99 bool internally in SDL
This commit is contained in:
@@ -353,7 +353,7 @@ int SDL_RemoveTimer(SDL_TimerID id)
|
||||
{
|
||||
SDL_TimerData *data = &SDL_timer_data;
|
||||
SDL_TimerMap *prev, *entry;
|
||||
SDL_bool canceled = SDL_FALSE;
|
||||
bool canceled = false;
|
||||
|
||||
if (!id) {
|
||||
return SDL_InvalidParamError("id");
|
||||
@@ -377,7 +377,7 @@ int SDL_RemoveTimer(SDL_TimerID id)
|
||||
if (entry) {
|
||||
if (!SDL_AtomicGet(&entry->timer->canceled)) {
|
||||
SDL_AtomicSet(&entry->timer->canceled, 1);
|
||||
canceled = SDL_TRUE;
|
||||
canceled = true;
|
||||
}
|
||||
SDL_free(entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user