From 0f371a16372ef52e2b336ce74b028e54d0a29657 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 31 Dec 2004 05:53:27 +0000 Subject: Fix a compilation error for the case where mallinfo() is not available. llvm-svn: 19201 --- llvm/lib/System/Unix/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/System/Unix/Process.cpp') diff --git a/llvm/lib/System/Unix/Process.cpp b/llvm/lib/System/Unix/Process.cpp index 19533905175..c1448de8d40 100644 --- a/llvm/lib/System/Unix/Process.cpp +++ b/llvm/lib/System/Unix/Process.cpp @@ -57,7 +57,7 @@ Process::GetMallocUsage() #elif defined(HAVE_SBRK) // Note this is only an approximation and more closely resembles // the value returned by mallinfo in the arena field. - char * eom = sbrk(0); + char * eom = (char*) sbrk(0); if (eom != ((char*)-1) && som != ((char*)-1)) return eom - som; else -- cgit v1.2.3