Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix: make mmalloc build in x64
[simgrid.git] / src / xbt / mmalloc / mmap-sup.c
index f32e0aa..e5cd973 100644 (file)
@@ -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)
     {