Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Apply suggestions to prevent implicit type conversion.

Co-authored-by: Soren Ptak <[email protected]>
  • Loading branch information
chinglee-iot and Skptak authored Jan 26, 2024
1 parent b068161 commit d18e8c1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions croutine.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,10 @@

/* Other file private variables. */
pxCurrentCoRoutine = NULL;
uxTopCoRoutineReadyPriority = 0;
xCoRoutineTickCount = 0;
xLastTickCount = 0;
xPassedTicks = 0;
uxTopCoRoutineReadyPriority = ( UBaseType_t ) 0U;
xCoRoutineTickCount = ( TickType_t ) 0U;
xLastTickCount = ( TickType_t ) 0U;
xPassedTicks = ( TickType_t ) 0U;
}
/*-----------------------------------------------------------*/

Expand Down
2 changes: 1 addition & 1 deletion portable/MemMang/heap_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@ size_t xPortGetFreeHeapSize( void )
*/
void vPortHeapResetState( void )
{
xNextFreeByte = ( size_t ) 0;
xNextFreeByte = ( size_t ) 0U;
}
/*-----------------------------------------------------------*/
8 changes: 4 additions & 4 deletions portable/MemMang/heap_4.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,9 +618,9 @@ void vPortHeapResetState( void )
{
pxEnd = NULL;

xFreeBytesRemaining = 0U;
xMinimumEverFreeBytesRemaining = 0U;
xNumberOfSuccessfulAllocations = 0;
xNumberOfSuccessfulFrees = 0;
xFreeBytesRemaining = ( size_t) 0U;
xMinimumEverFreeBytesRemaining = ( size_t )0U;
xNumberOfSuccessfulAllocations = ( size_t ) 0U;
xNumberOfSuccessfulFrees = ( size_t ) 0U;
}
/*-----------------------------------------------------------*/
8 changes: 4 additions & 4 deletions portable/MemMang/heap_5.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,10 @@ void vPortHeapResetState( void )
{
pxEnd = NULL;

xFreeBytesRemaining = 0U;
xMinimumEverFreeBytesRemaining = 0U;
xNumberOfSuccessfulAllocations = 0;
xNumberOfSuccessfulFrees = 0;
xFreeBytesRemaining = ( size_t ) 0U;
xMinimumEverFreeBytesRemaining = ( size_t ) 0U;
xNumberOfSuccessfulAllocations = ( size_t ) 0U;
xNumberOfSuccessfulFrees = ( size_t ) 0U;

#if ( configENABLE_HEAP_PROTECTOR == 1 )
pucHeapHighAddress = NULL;
Expand Down

0 comments on commit d18e8c1

Please sign in to comment.