mm/mm_heap: add parenthesis in macro definition
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
c56aa7b527
commit
1c2931222c
@ -151,11 +151,11 @@
|
||||
|
||||
/* Check if node/prenode is free */
|
||||
|
||||
#define MM_NODE_IS_ALLOC(node) ((node->size & MM_ALLOC_BIT) != 0)
|
||||
#define MM_NODE_IS_FREE(node) ((node->size & MM_ALLOC_BIT) == 0)
|
||||
#define MM_NODE_IS_ALLOC(node) (((node)->size & MM_ALLOC_BIT) != 0)
|
||||
#define MM_NODE_IS_FREE(node) (((node)->size & MM_ALLOC_BIT) == 0)
|
||||
|
||||
#define MM_PREVNODE_IS_ALLOC(node) ((node->size & MM_PREVFREE_BIT) == 0)
|
||||
#define MM_PREVNODE_IS_FREE(node) ((node->size & MM_PREVFREE_BIT) != 0)
|
||||
#define MM_PREVNODE_IS_ALLOC(node) (((node)->size & MM_PREVFREE_BIT) == 0)
|
||||
#define MM_PREVNODE_IS_FREE(node) (((node)->size & MM_PREVFREE_BIT) != 0)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
Loading…
Reference in New Issue
Block a user