From f07101941f4397554a6cee4fbaf3286137865064 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 26 Jul 2011 14:59:48 +0200 Subject: [PATCH] For win64 it is cast unsigned long long. --- src/xbt/win32_ucontext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.20.1