瀏覽代碼

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

Reported by puffy.
Mike Pall 4 周之前
父節點
當前提交
34b59f8aa9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/vm_x86.dasc

+ 1 - 1
src/vm_x86.dasc

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