X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bb67b63d87d1176015342a01d8fe739fc1f5c6a5..f07101941f4397554a6cee4fbaf3286137865064:/src/xbt/win32_ucontext.c diff --git a/src/xbt/win32_ucontext.c b/src/xbt/win32_ucontext.c index 96251c4a84..757eb43a70 100644 --- a/src/xbt/win32_ucontext.c +++ b/src/xbt/win32_ucontext.c @@ -66,8 +66,8 @@ int makecontext(ucontext_t * ucp, void (*func) (), int argc, ...) # error "_IA64_" #endif #ifdef _AMD64_ - ucp->uc_mcontext.Rip = (unsigned long) func; - ucp->uc_mcontext.Rsp = (unsigned long) sp - 4; + ucp->uc_mcontext.Rip = (unsigned long long) func; + ucp->uc_mcontext.Rsp = (unsigned long long) sp - 8; #endif /* Save/Restore the full machine context */