]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/croutine.c
Multiple tidy up, documentation corrections and typo corrections highlighted by Tamas...
[freertos] / FreeRTOS / Source / croutine.c
index 2b135f84eb8e4bfceb7f163319270940c2748598..04b229a4751b99bdc31a97f29072f34dcf3852b4 100644 (file)
@@ -174,7 +174,7 @@ corCRCB *pxCoRoutine;
                listSET_LIST_ITEM_OWNER( &( pxCoRoutine->xEventListItem ), pxCoRoutine );\r
 \r
                /* Event lists are always in priority order. */\r
-               listSET_LIST_ITEM_VALUE( &( pxCoRoutine->xEventListItem ), configMAX_PRIORITIES - ( portTickType ) uxPriority );\r
+               listSET_LIST_ITEM_VALUE( &( pxCoRoutine->xEventListItem ), ( ( portTickType ) configMAX_CO_ROUTINE_PRIORITIES - ( portTickType ) uxPriority ) );\r
 \r
                /* Now the co-routine has been initialised it can be added to the ready\r
                list at the correct priority. */\r