Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
For win64 it is cast unsigned long long.
[simgrid.git] / src / xbt / win32_ucontext.c
index 96251c4..757eb43 100644 (file)
@@ -66,8 +66,8 @@ int makecontext(ucontext_t * ucp, void (*func) (), int argc, ...)
   #  error "_IA64_"\r
   #endif\r
   #ifdef _AMD64_\r
-  ucp->uc_mcontext.Rip = (unsigned long) func;\r
-  ucp->uc_mcontext.Rsp = (unsigned long) sp - 4;\r
+  ucp->uc_mcontext.Rip = (unsigned long long) func;\r
+  ucp->uc_mcontext.Rsp = (unsigned long long) sp - 8;\r
   #endif\r
 \r
       /* Save/Restore the full machine context */ \r