[llvm-commits] CVS: llvm/lib/System/Unix/Process.cpp

Reid Spencer reid at x10sys.com
Thu Dec 30 21:53:37 PST 2004



Changes in directory llvm/lib/System/Unix:

Process.cpp updated: 1.6 -> 1.7
---
Log message:

Fix a compilation error for the case where mallinfo() is not available.


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/System/Unix/Process.cpp
diff -u llvm/lib/System/Unix/Process.cpp:1.6 llvm/lib/System/Unix/Process.cpp:1.7
--- llvm/lib/System/Unix/Process.cpp:1.6	Mon Dec 27 00:17:26 2004
+++ llvm/lib/System/Unix/Process.cpp	Thu Dec 30 23:53:27 2004
@@ -57,7 +57,7 @@
 #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






More information about the llvm-commits mailing list