diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-03 22:31:00 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-03 22:31:00 +0200 |
| commit | 424312c2d814619a18fefe74e2262788b15227a6 (patch) | |
| tree | 35ec773ed7f3768f2032c15e8b04eb76fff3763d /src/libtools | |
| parent | 969ee91506518c4bb56d3d1b29e66c2c23e95e4c (diff) | |
| download | box64-424312c2d814619a18fefe74e2262788b15227a6.tar.gz box64-424312c2d814619a18fefe74e2262788b15227a6.zip | |
More work on stack alignements
Diffstat (limited to 'src/libtools')
| -rwxr-xr-x | src/libtools/myalign.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |