Fixed GCC4 warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15867 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ea34f0f03b
commit
f7ba8efac9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user