x86/x64: Backport fix for math.min()/math.max() argument check.

Reported by puffy.
This commit is contained in:
Mike Pall
2025-11-16 19:34:11 +01:00
parent af9763a50d
commit 34b59f8aa9

View 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