X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c529a2898e4b141aa20eaf1561ff8afb5e0cc259..097befdbebacea302be3a7442afce30ae1a26937:/src/simix/smx_context.cpp diff --git a/src/simix/smx_context.cpp b/src/simix/smx_context.cpp index 3a552c897a..4a9c6ae478 100644 --- a/src/simix/smx_context.cpp +++ b/src/simix/smx_context.cpp @@ -66,7 +66,7 @@ void SIMIX_context_mod_init(void) if (simgrid::simix::factory_initializer) simix_global->context_factory = simgrid::simix::factory_initializer(); else { /* use the factory specified by --cfg=contexts/factory:value */ -#if defined(CONTEXT_THREADS) && 0 +#if defined(CONTEXT_THREADS) if (!strcmp(smx_context_factory_name, "thread")) simix_global->context_factory = simgrid::simix::thread_factory(); #else @@ -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)