]> git.sur5r.net Git - freertos/commitdiff
Slight correction to coding standard in heap_2.c and heap_4.c.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 25 Jun 2013 13:25:08 +0000 (13:25 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 25 Jun 2013 13:25:08 +0000 (13:25 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1948 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Source/portable/MemMang/heap_2.c
FreeRTOS/Source/portable/MemMang/heap_4.c

index 06eb5fbfb209ce70f7ed9513bff23f5446ff436d..6317f202483c77c29fde390aa540141664f878f4 100644 (file)
@@ -174,7 +174,7 @@ void *pvReturn = NULL;
                        xWantedSize += heapSTRUCT_SIZE;\r
 \r
                        /* Ensure that blocks are always aligned to the required number of bytes. */\r
-                       if( xWantedSize & portBYTE_ALIGNMENT_MASK )\r
+                       if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0 )\r
                        {\r
                                /* Byte alignment required. */\r
                                xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );\r
index 2babb203f8d339025b019ea70f824c07c277e2f2..b40229fb19f738c2ebcd13c2d198a053b2dbc1bd 100644 (file)
@@ -167,7 +167,7 @@ void *pvReturn = NULL;
 \r
                        /* Ensure that blocks are always aligned to the required number of \r
                        bytes. */\r
-                       if( xWantedSize & portBYTE_ALIGNMENT_MASK )\r
+                       if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )\r
                        {\r
                                /* Byte alignment required. */\r
                                xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );\r