From: unknown Date: Tue, 26 Jul 2011 12:59:48 +0000 (+0200) Subject: For win64 it is cast unsigned long long. X-Git-Tag: v3_6_2~188^2~8^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f07101941f4397554a6cee4fbaf3286137865064 For win64 it is cast unsigned long long. --- 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 */