diff options
Diffstat (limited to 'nuttx/mm')
-rw-r--r-- | nuttx/mm/mm_graninit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/mm/mm_graninit.c b/nuttx/mm/mm_graninit.c index 673e65ac7..4905cb0b5 100644 --- a/nuttx/mm/mm_graninit.c +++ b/nuttx/mm/mm_graninit.c @@ -104,12 +104,12 @@ gran_common_initialize(FAR void *heapstart, size_t heapsize, uint8_t log2gran, /* Check parameters if debug is on. Note the size of a granule is * limited to 2**31 bytes and that the size of the granule must be greater - * than the alignment size. + * than or equal to the alignment size. */ DEBUGASSERT(heapstart && heapsize > 0 && log2gran > 0 && log2gran < 32 && - log2gran > log2align); + log2gran >= log2align); /* Get the aligned start of the heap */ |