ARM: Fix tonumber() argument check.
This commit is contained in:
parent
51f05d64c9
commit
48567b6043
@ -988,8 +988,11 @@ static void build_subroutines(BuildCtx *ctx)
|
|||||||
|
|
|
|
||||||
|//-- Base library: conversions ------------------------------------------
|
|//-- Base library: conversions ------------------------------------------
|
||||||
|
|
|
|
||||||
|.ffunc_1 tonumber
|
|.ffunc tonumber
|
||||||
| // Only handles the number case inline (without a base argument).
|
| // Only handles the number case inline (without a base argument).
|
||||||
|
| ldrd CARG12, [BASE]
|
||||||
|
| cmp NARGS8:RC, #8
|
||||||
|
| bne ->fff_fallback
|
||||||
| checktp CARG2, LJ_TISNUM
|
| checktp CARG2, LJ_TISNUM
|
||||||
| bls ->fff_restv
|
| bls ->fff_restv
|
||||||
| b ->fff_fallback
|
| b ->fff_fallback
|
||||||
|
@ -891,7 +891,7 @@ static const unsigned int build_actionlist[5777] = {
|
|||||||
0x0006004d,
|
0x0006004d,
|
||||||
0xe1c900d0,
|
0xe1c900d0,
|
||||||
0xe35b0008,
|
0xe35b0008,
|
||||||
0x3a000000,
|
0x1a000000,
|
||||||
0x00050046,
|
0x00050046,
|
||||||
0xe3710000,
|
0xe3710000,
|
||||||
0x000a0000,
|
0x000a0000,
|
||||||
|
Loading…
Reference in New Issue
Block a user