]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x64: Properly fix __call metamethod return dispatch.
authorMike Pall <mike>
Sun, 5 Nov 2023 10:31:08 +0000 (11:31 +0100)
committerMike Pall <mike>
Sun, 5 Nov 2023 10:31:08 +0000 (11:31 +0100)
Reported by Sergey Kaplun. #1110

src/vm_x86.dasc

index 5b3356dce2a81c72462c226966b5721072b4b488..56712f9033a0b4d55053230fbcdca9fb8274cd06 100644 (file)
@@ -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.