Skip to content

Commit 2a55fbf

Browse files
committed
Update parantheses in SMP macro definition
1 parent f9c7ff7 commit 2a55fbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,18 +326,18 @@
326326
* one core to yield. */
327327
#define prvYieldCore( xCoreID ) \
328328
do { \
329-
if( xCoreID == ( BaseType_t ) portGET_CORE_ID() ) \
329+
if( ( xCoreID ) == ( BaseType_t ) portGET_CORE_ID() ) \
330330
{ \
331331
/* Pending a yield for this core since it is in the critical section. */ \
332-
xYieldPendings[ xCoreID ] = pdTRUE; \
332+
xYieldPendings[ ( xCoreID ) ] = pdTRUE; \
333333
} \
334334
else \
335335
{ \
336336
/* Request other core to yield if it is not requested before. */ \
337-
if( pxCurrentTCBs[ xCoreID ]->xTaskRunState != taskTASK_SCHEDULED_TO_YIELD ) \
337+
if( pxCurrentTCBs[ ( xCoreID ) ]->xTaskRunState != taskTASK_SCHEDULED_TO_YIELD ) \
338338
{ \
339339
portYIELD_CORE( xCoreID ); \
340-
pxCurrentTCBs[ xCoreID ]->xTaskRunState = taskTASK_SCHEDULED_TO_YIELD; \
340+
pxCurrentTCBs[ ( xCoreID ) ]->xTaskRunState = taskTASK_SCHEDULED_TO_YIELD; \
341341
} \
342342
} \
343343
} while( 0 )

0 commit comments

Comments
 (0)