From f7af1a214ce0ce7602a6a02c15bdbdf1a3ccc146 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Wed, 18 Nov 2015 21:56:11 +0100 Subject: [PATCH] Fix vm_growstack_v in vm_x64.dasc. It was dropping only half of the two-slot frame info before growing the stack and retrying the call. --- src/vm_x64.dasc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm_x64.dasc b/src/vm_x64.dasc index e7e990ae..7c94efde 100644 --- a/src/vm_x64.dasc +++ b/src/vm_x64.dasc @@ -531,7 +531,7 @@ static void build_subroutines(BuildCtx *ctx) | jmp >2 | |->vm_growstack_v: // Grow stack for vararg Lua function. - | sub RD, 8 + | sub RD, 16 // Drop two-slot frame info. | jmp >1 | |->vm_growstack_f: // Grow stack for fixarg Lua function.