From: Mike Pall Date: Sun, 5 Nov 2023 10:31:08 +0000 (+0100) Subject: x64: Properly fix __call metamethod return dispatch. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d133d67c881f363f0b5584ebd21a965eb3435aa1;p=thirdparty%2FLuaJIT.git x64: Properly fix __call metamethod return dispatch. Reported by Sergey Kaplun. #1110 --- diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc index 5b3356dc..56712f90 100644 --- a/src/vm_x86.dasc +++ b/src/vm_x86.dasc @@ -1243,7 +1243,7 @@ static void build_subroutines(BuildCtx *ctx) | mov LFUNC:RB, [RA-8] | add NARGS:RD, 1 | // This is fragile. L->base must not move, KBASE must always be defined. - |.if x64 + |.if X64 | cmp KBASEa, rdx // Continue with CALLT if flag set. |.else | cmp KBASE, BASE // Continue with CALLT if flag set.