x86: Fix math.floor()/ceil() argument check.
Thanks to RaphaelIT7. #1532
This commit is contained in:
parent
3000f7cdb1
commit
acf8fcbd93
@ -2022,7 +2022,7 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
| jmp ->vm_return
|
||||
|
|
||||
|.macro math_round, func
|
||||
| .ffunc math_ .. func
|
||||
| .ffunc_1 math_ .. func
|
||||
|.if DUALNUM
|
||||
| cmp dword [BASE+4], LJ_TISNUM; jne >1
|
||||
| mov RB, dword [BASE]; jmp ->fff_resi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user