cpukit/include/rtems/rtems/timerimpl.h: Used unsigned type for mask

This addresses an issue found by the GCC -Wsign-compare warning.
The code was using a signed type for a bit mask.
This commit is contained in:
Joel Sherrill
2025-09-26 16:49:00 -05:00
committed by Gedare Bloom
parent bf949e0526
commit fd0123a7ef

View File

@@ -138,7 +138,7 @@ static inline bool _Timer_Is_interval_class(
Timer_Classes the_class
)
{
int mask;
uint32_t mask;
mask = TIMER_CLASS_BIT_NOT_DORMANT | TIMER_CLASS_BIT_TIME_OF_DAY;
return ( the_class & mask ) == TIMER_CLASS_BIT_NOT_DORMANT;
@@ -148,7 +148,7 @@ static inline bool _Timer_Is_on_task_class(
Timer_Classes the_class
)
{
int mask;
uint32_t mask;
mask = TIMER_CLASS_BIT_NOT_DORMANT | TIMER_CLASS_BIT_ON_TASK;
return ( the_class & mask ) == mask;