Fix build error on 32-bit host platform (no function max(int, long int)). I unfortunately can't verify if this works or fails on a 64-bit host though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34228 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a8a03488b1
commit
bf0f20ea81
@ -198,7 +198,7 @@ DefaultCatalog::WriteToFile(const char *path)
|
|||||||
return res;
|
return res;
|
||||||
|
|
||||||
BMallocIO mallocIO;
|
BMallocIO mallocIO;
|
||||||
mallocIO.SetBlockSize(max(fCatMap.Size()*20, 256L));
|
mallocIO.SetBlockSize(max(fCatMap.Size()*20, 256));
|
||||||
// set a largish block-size in order to avoid reallocs
|
// set a largish block-size in order to avoid reallocs
|
||||||
res = Flatten(&mallocIO);
|
res = Flatten(&mallocIO);
|
||||||
if (res == B_OK) {
|
if (res == B_OK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user