OS/2 SDL_Delay(): add missing else : SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sun, 25 Mar 2018 01:21:10 +0300
branchSDL-1.2
changeset 119782dfa07d52047
parent 11977 6cf3a08b42dc
child 11979 d684a767e240
OS/2 SDL_Delay(): add missing else :

it looks like an 'else' is missing after the 'already time-critical'
case for if(DosEnterMustComplete()) check.
src/timer/os2/SDL_systimer.c
     1.1 --- a/src/timer/os2/SDL_systimer.c	Sat Mar 24 23:38:50 2018 +0300
     1.2 +++ b/src/timer/os2/SDL_systimer.c	Sun Mar 25 01:21:10 2018 +0300
     1.3 @@ -134,7 +134,7 @@
     1.4   /* tib->tib_ptib2->tib2_ulpri = 0x0300;*/
     1.5   /* We do not want to run at high priority if a signal causes us
     1.6      to longjmp() out of this section... */
     1.7 -      if (DosEnterMustComplete(&nesting))
     1.8 +      else if (DosEnterMustComplete(&nesting))
     1.9          switch_priority = 0;
    1.10        else
    1.11          DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0);