Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert last change since it did nothing beside arming the code esthetic ;)
[simgrid.git] / src / xbt / context_win32.c
index aa8b55d..cdfa1da 100644 (file)
@@ -17,7 +17,7 @@
    under the LGPL licence, what I here do. */
 
 /*#include "context_win32.h" Not needed since this file is to be included*/
-
+#include "context_win32.h"
 int getcontext(ucontext_t *ucp)
 {
        int ret;
@@ -67,7 +67,7 @@ int makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
        va_start (ap, argc);
        for (i=0; i<argc; i++) {
                memcpy(sp, ap, 8);
-               ap +=8;
+               (char*)ap +=8;
                sp += 8;
        }
        va_end(ap);