From 6cbbfd2eb5a6b3da9f41c5bff7cb7ffb78c41535 Mon Sep 17 00:00:00 2001
From: Richard Barry <ribarry@amazon.com>
Date: Tue, 25 Jun 2013 13:25:08 +0000
Subject: [PATCH] Slight correction to coding standard in heap_2.c and
 heap_4.c.

---
 FreeRTOS/Source/portable/MemMang/heap_2.c | 2 +-
 FreeRTOS/Source/portable/MemMang/heap_4.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/FreeRTOS/Source/portable/MemMang/heap_2.c b/FreeRTOS/Source/portable/MemMang/heap_2.c
index 06eb5fbfb2..6317f20248 100644
--- a/FreeRTOS/Source/portable/MemMang/heap_2.c
+++ b/FreeRTOS/Source/portable/MemMang/heap_2.c
@@ -174,7 +174,7 @@ void *pvReturn = NULL;
 			xWantedSize += heapSTRUCT_SIZE;
 
 			/* 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. */
 				xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
diff --git a/FreeRTOS/Source/portable/MemMang/heap_4.c b/FreeRTOS/Source/portable/MemMang/heap_4.c
index 2babb203f8..b40229fb19 100644
--- a/FreeRTOS/Source/portable/MemMang/heap_4.c
+++ b/FreeRTOS/Source/portable/MemMang/heap_4.c
@@ -167,7 +167,7 @@ void *pvReturn = NULL;
 
 			/* Ensure that blocks are always aligned to the required number of 
 			bytes. */
-			if( xWantedSize & portBYTE_ALIGNMENT_MASK )
+			if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
 			{
 				/* Byte alignment required. */
 				xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );