forked from Imagelibrary/rtems
rtems: Fix RTEMS_MAXIMUM_PRIORITY define
Cast the internal PRIORITY_MAXIMUM to the right type for a Classic API task priority to avoid integer conversion warnings.
This commit is contained in:
@@ -101,7 +101,7 @@ typedef uint32_t rtems_task_priority;
|
||||
* want to ensure that a task does not executes during
|
||||
* certain operations such as a system mode change.
|
||||
*/
|
||||
#define RTEMS_MAXIMUM_PRIORITY PRIORITY_MAXIMUM
|
||||
#define RTEMS_MAXIMUM_PRIORITY ((rtems_task_priority) PRIORITY_MAXIMUM)
|
||||
|
||||
/**
|
||||
* The following constant is passed to rtems_task_set_priority when the
|
||||
|
||||
Reference in New Issue
Block a user