mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
rtems: Fix explicit type conversion
This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
This commit is contained in:
@@ -80,7 +80,7 @@ RTEMS_INLINE_ROUTINE Semaphore_Variant _Semaphore_Get_variant(
|
||||
uintptr_t flags
|
||||
)
|
||||
{
|
||||
return (Semaphore_Discipline) ( flags & 0x7 );
|
||||
return (Semaphore_Variant) ( flags & 0x7 );
|
||||
}
|
||||
|
||||
RTEMS_INLINE_ROUTINE uintptr_t _Semaphore_Set_variant(
|
||||
|
||||
Reference in New Issue
Block a user