diff options
Diffstat (limited to 'os/rt/src/chsys.c')
-rw-r--r-- | os/rt/src/chsys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/rt/src/chsys.c b/os/rt/src/chsys.c index 4e2102b89..7754e546d 100644 --- a/os/rt/src/chsys.c +++ b/os/rt/src/chsys.c @@ -191,9 +191,10 @@ void chSysTimerHandlerI(void) { #if CH_CFG_TIME_QUANTUM > 0
/* Running thread has not used up quantum yet? */
- if (currp->p_preempt > 0)
+ if (currp->p_preempt > 0U) {
/* Decrement remaining quantum.*/
currp->p_preempt--;
+ }
#endif
#if CH_DBG_THREADS_PROFILING == TRUE
currp->p_time++;
|