From f7ba8efac9ca02b9137378b48c2ecd12c2f6e934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 8 Jan 2006 13:09:31 +0000 Subject: [PATCH] Fixed GCC4 warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15867 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/malloc/heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }