]> AND Public Git Repository - simgrid.git/blobdiff - src/simix/smx_context.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
what could have been the use of that construct?
[simgrid.git] / src / simix / smx_context.cpp
index bacb4661838e33a62ffce7a9a6503ff2bea14a10..4a9c6ae47849583297c72d9c90a827d0ae1949f3 100644 (file)
@@ -141,7 +141,7 @@ void *SIMIX_context_stack_new(void)
 #ifdef HAVE_MC
     /* Cannot use posix_memalign when HAVE_MC. Align stack by hand, and save the
      * pointer returned by xbt_malloc0. */
-    char *alloc = xbt_malloc0(size + xbt_pagesize);
+    char *alloc = (char*)xbt_malloc0(size + xbt_pagesize);
     stack = alloc - ((uintptr_t)alloc & (xbt_pagesize - 1)) + xbt_pagesize;
     *((void **)stack - 1) = alloc;
 #elif !defined(_XBT_WIN32)