Fixed GCC4 warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15867 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-01-08 13:09:31 +00:00
parent ea34f0f03b
commit f7ba8efac9

View File

@ -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;
}