mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-26 03:08:27 +08:00
Slight correction to coding standard in heap_2.c and heap_4.c.
This commit is contained in:
@ -174,7 +174,7 @@ void *pvReturn = NULL;
|
|||||||
xWantedSize += heapSTRUCT_SIZE;
|
xWantedSize += heapSTRUCT_SIZE;
|
||||||
|
|
||||||
/* Ensure that blocks are always aligned to the required number of bytes. */
|
/* Ensure that blocks are always aligned to the required number of bytes. */
|
||||||
if( xWantedSize & portBYTE_ALIGNMENT_MASK )
|
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0 )
|
||||||
{
|
{
|
||||||
/* Byte alignment required. */
|
/* Byte alignment required. */
|
||||||
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
|
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
|
||||||
|
@ -167,7 +167,7 @@ void *pvReturn = NULL;
|
|||||||
|
|
||||||
/* Ensure that blocks are always aligned to the required number of
|
/* Ensure that blocks are always aligned to the required number of
|
||||||
bytes. */
|
bytes. */
|
||||||
if( xWantedSize & portBYTE_ALIGNMENT_MASK )
|
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
|
||||||
{
|
{
|
||||||
/* Byte alignment required. */
|
/* Byte alignment required. */
|
||||||
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
|
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
|
||||||
|
Reference in New Issue
Block a user