aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/System/Unix/Process.cpp2
-rw-r--r--lib/System/Unix/Process.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Process.cpp b/lib/System/Unix/Process.cpp
index 1953390517..c1448de8d4 100644
--- a/lib/System/Unix/Process.cpp
+++ b/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
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc
index 1953390517..c1448de8d4 100644
--- a/lib/System/Unix/Process.inc
+++ b/lib/System/Unix/Process.inc
@@ -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