diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-06-27 20:22:32 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 21:52:54 +0000 |
commit | 2778b5b75f0be066b998be4c5f1d93bea40aceb3 (patch) | |
tree | 0fdb5f17de7f814a4acfb73224c2df5056a582d0 /src/qcommon/vm_x86_64.c | |
parent | 7c04bfe3152507691e617bf1ceb22908921a7157 (diff) |
- Fix opStack size for vm_x86.c - Change opStack alignment to 16 for vm_x86_64.c
Diffstat (limited to 'src/qcommon/vm_x86_64.c')
-rw-r--r-- | src/qcommon/vm_x86_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qcommon/vm_x86_64.c b/src/qcommon/vm_x86_64.c index 93b56a37..1071e79f 100644 --- a/src/qcommon/vm_x86_64.c +++ b/src/qcommon/vm_x86_64.c @@ -1017,7 +1017,7 @@ static char* memData; int VM_CallCompiled(vm_t *vm, int *args) { - int stack[OPSTACK_SIZE + 3]; + int stack[OPSTACK_SIZE + 15]; int programCounter; int programStack; int stackOnEntry; @@ -1064,7 +1064,7 @@ int VM_CallCompiled(vm_t *vm, int *args) // off we go into generated code... entryPoint = getentrypoint(vm); - opStack = PADP(stack, 4); + opStack = PADP(stack, 16); *opStack = 0xDEADBEEF; opStackRet = 0; |