Fix a compilation error for the case where mallinfo() is not available.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 31 Dec 2004 05:53:27 +0000 (05:53 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 31 Dec 2004 05:53:27 +0000 (05:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19201 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Unix/Process.cpp
lib/System/Unix/Process.inc

index 19533905175142256dbb268bea9edf970ea806c3..c1448de8d40f1e49b11ef3b6e7f49248ac448ce3 100644 (file)
@@ -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
index 19533905175142256dbb268bea9edf970ea806c3..c1448de8d40f1e49b11ef3b6e7f49248ac448ce3 100644 (file)
@@ -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