diff --git a/src/system/libroot/posix/malloc/heap.h b/src/system/libroot/posix/malloc/heap.h index 4de101bd38..d202f861ae 100644 --- a/src/system/libroot/posix/malloc/heap.h +++ b/src/system/libroot/posix/malloc/heap.h @@ -422,7 +422,7 @@ hoardHeap::numBlocks(const int sizeclass) assert(s > 0); const int blksize = align(sizeof(block) + s); // Compute the number of blocks that will go into this superblock. - int nb = MAX(1, ((SUPERBLOCK_SIZE - sizeof(superblock)) / blksize)); + int nb = max_c(1, ((SUPERBLOCK_SIZE - sizeof(superblock)) / blksize)); return nb; }