From: cristianrosa Date: Mon, 10 May 2010 09:53:19 +0000 (+0000) Subject: Bugfix: make mmalloc build in x64 X-Git-Tag: SVN~17 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c894b2b7eab829b356607fc6a84eb2655477b4ff Bugfix: make mmalloc build in x64 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7727 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/mmalloc/mmap-sup.c b/src/xbt/mmalloc/mmap-sup.c index f32e0aa1d9..e5cd973c27 100644 --- a/src/xbt/mmalloc/mmap-sup.c +++ b/src/xbt/mmalloc/mmap-sup.c @@ -194,7 +194,7 @@ mmalloc_findbase (int size) to signal an error return, and besides, it is useful to catch NULL pointers if it is unmapped. Instead start at the next page boundary. */ - base = (void*) getpagesize (); + base = (void*)(long) getpagesize (); } else if (base == (void*) -1) {