From 424312c2d814619a18fefe74e2262788b15227a6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 3 Apr 2021 22:31:00 +0200 Subject: More work on stack alignements --- src/libtools/myalign.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libtools') diff --git a/src/libtools/myalign.c b/src/libtools/myalign.c index 45473bd8..1d2f3d11 100755 --- a/src/libtools/myalign.c +++ b/src/libtools/myalign.c @@ -100,7 +100,7 @@ void myStackAlign(x64emu_t* emu, const char* fmt, uint64_t* st, uint64_t* mystac ++p; break; case 14: //%LG long double - if((((uintptr_t)(st+1))&0xf)!=0) + if((((uintptr_t)st)&0xf)!=0) st++; #ifdef HAVE_LD80BITS if((((uintptr_t)mystack)&0xf)!=0) @@ -320,7 +320,7 @@ void myStackAlignW(x64emu_t* emu, const char* fmt, uint64_t* st, uint64_t* mysta ++p; break; case 14: //%LG long double - if((((uintptr_t)(st+1))&0xf)!=0) + if((((uintptr_t)st)&0xf)!=0) st++; #ifdef HAVE_LD80BITS if((((uintptr_t)mystack)&0xf)!=0) -- cgit 1.4.1