]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x86/x64: Backport fix for math.min()/math.max() argument check.
authorMike Pall <mike>
Sun, 16 Nov 2025 18:34:11 +0000 (19:34 +0100)
committerMike Pall <mike>
Sun, 16 Nov 2025 18:34:11 +0000 (19:34 +0100)
Reported by puffy.

src/vm_x86.dasc

index 85378a3b9070b4333b0f7749546e4ee0d07072f0..abc8ab219381d1e0c044b5a35617c8e6722d6fda 100644 (file)
@@ -2232,7 +2232,7 @@ static void build_subroutines(BuildCtx *ctx)
   |.endif
   |
   |.macro math_minmax, name, cmovop, fcmovop, sseop
-  |  .ffunc name
+  |  .ffunc_1 name
   |  mov RA, 2
   |  cmp dword [BASE+4], LJ_TISNUM
   |.if DUALNUM