Apply suggestions from code review

Apply suggestions to prevent implicit type conversion.

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
This commit is contained in:
chinglee-iot 2024-01-26 18:03:44 +08:00 committed by GitHub
parent b068161117
commit d18e8c18e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 13 deletions

View file

@ -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;
}
/*-----------------------------------------------------------*/

View file

@ -160,6 +160,6 @@ size_t xPortGetFreeHeapSize( void )
*/
void vPortHeapResetState( void )
{
xNextFreeByte = ( size_t ) 0;
xNextFreeByte = ( size_t ) 0U;
}
/*-----------------------------------------------------------*/

View file

@ -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;
}
/*-----------------------------------------------------------*/

View file

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