mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
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
1 changed files with 4 additions and 4 deletions
|
@ -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 a new issue