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:
Sebastian Huber
2017-02-01 13:00:15 +01:00
parent f7ba2945d3
commit 70f559d835

View File

@@ -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