mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 05:34:59 -05:00
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:
parent
b068161117
commit
d18e8c18e0
4 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
|
|||
|
|
@ -160,6 +160,6 @@ size_t xPortGetFreeHeapSize( void )
|
|||
*/
|
||||
void vPortHeapResetState( void )
|
||||
{
|
||||
xNextFreeByte = ( size_t ) 0;
|
||||
xNextFreeByte = ( size_t ) 0U;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue