x86: Fix math.floor()/ceil() argument check.

Thanks to RaphaelIT7. #1532
This commit is contained in:
Mike Pall 2026-10-13 12:14:15 +02:00
parent 3000f7cdb1
commit acf8fcbd93

View File

@ -2022,7 +2022,7 @@ static void build_subroutines(BuildCtx *ctx)
| jmp ->vm_return | jmp ->vm_return
| |
|.macro math_round, func |.macro math_round, func
| .ffunc math_ .. func | .ffunc_1 math_ .. func
|.if DUALNUM |.if DUALNUM
| cmp dword [BASE+4], LJ_TISNUM; jne >1 | cmp dword [BASE+4], LJ_TISNUM; jne >1
| mov RB, dword [BASE]; jmp ->fff_resi | mov RB, dword [BASE]; jmp ->fff_resi