From bf0f20ea81618f48f3b01e520196218948448937 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Wed, 25 Nov 2009 00:42:58 +0000 Subject: [PATCH] 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 --- src/tools/locale/DefaultCatalog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/locale/DefaultCatalog.cpp b/src/tools/locale/DefaultCatalog.cpp index f08284c0be..805a7c7cfa 100644 --- a/src/tools/locale/DefaultCatalog.cpp +++ b/src/tools/locale/DefaultCatalog.cpp @@ -198,7 +198,7 @@ DefaultCatalog::WriteToFile(const char *path) return res; 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 res = Flatten(&mallocIO); if (res == B_OK) {