Slight correction to coding standard in heap_2.c and heap_4.c.

This commit is contained in:
Richard Barry 2013-06-25 13:25:08 +00:00
parent fb47260e80
commit 6cbbfd2eb5
2 changed files with 2 additions and 2 deletions

View file

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

View file

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