Fixed GCC4 warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15867 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -422,7 +422,7 @@ hoardHeap::numBlocks(const int sizeclass)
|
|||||||
assert(s > 0);
|
assert(s > 0);
|
||||||
const int blksize = align(sizeof(block) + s);
|
const int blksize = align(sizeof(block) + s);
|
||||||
// Compute the number of blocks that will go into this superblock.
|
// 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;
|
return nb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user