mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-10 08:07:46 -04:00
Fix 'int' to 'BaseType_t' conversion issue
This commit is contained in:
parent
910891f21d
commit
1ec813b158
1 changed files with 2 additions and 2 deletions
4
tasks.c
4
tasks.c
|
@ -903,7 +903,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
|
|||
/* System idle tasks are being assigned a priority of tskIDLE_PRIORITY - 1 here. */
|
||||
if( ( pxCurrentTCBs[ xCoreID ]->uxTaskAttributes & taskATTRIBUTE_IS_IDLE ) != 0U )
|
||||
{
|
||||
xCurrentCoreTaskPriority = xCurrentCoreTaskPriority - 1;
|
||||
xCurrentCoreTaskPriority = ( BaseType_t ) ( xCurrentCoreTaskPriority - 1 );
|
||||
}
|
||||
|
||||
if( ( taskTASK_IS_RUNNING( pxCurrentTCBs[ xCoreID ] ) != pdFALSE ) && ( xYieldPendings[ xCoreID ] == pdFALSE ) )
|
||||
|
@ -3594,7 +3594,7 @@ static BaseType_t prvCreateIdleTasks( void )
|
|||
}
|
||||
else
|
||||
{
|
||||
vApplicationGetPassiveIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &uxIdleTaskStackSize, xCoreID - 1 );
|
||||
vApplicationGetPassiveIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &uxIdleTaskStackSize, ( BaseType_t ) ( xCoreID - 1 ) );
|
||||
}
|
||||
}
|
||||
#endif /* if ( configNUMBER_OF_CORES == 1 ) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue