diff options
Diffstat (limited to 'cpukit/itron/src/chg_pri.c')
-rw-r--r-- | cpukit/itron/src/chg_pri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/itron/src/chg_pri.c b/cpukit/itron/src/chg_pri.c index 2bb4a25090..d47d17cafc 100644 --- a/cpukit/itron/src/chg_pri.c +++ b/cpukit/itron/src/chg_pri.c @@ -48,7 +48,7 @@ ER chg_pri( if (_States_Is_dormant( the_thread->current_state )) _ITRON_return_errorno( E_OBJ ); - if (( tskpri <= 0 ) || ( tskpri >= 256 )) + if (( tskpri <= 0 ) || ( tskpri >= PRIORITY_MAXIMUM-1 )) _ITRON_return_errorno( E_PAR ); new_priority = _ITRON_Task_Priority_to_Core( tskpri ); |