ARM: Fix tonumber() argument check.

This commit is contained in:
Mike Pall 2012-05-10 16:16:42 +02:00
parent 51f05d64c9
commit 48567b6043
2 changed files with 5 additions and 2 deletions

View File

@ -988,8 +988,11 @@ static void build_subroutines(BuildCtx *ctx)
|
|//-- Base library: conversions ------------------------------------------
|
|.ffunc_1 tonumber
|.ffunc tonumber
| // Only handles the number case inline (without a base argument).
| ldrd CARG12, [BASE]
| cmp NARGS8:RC, #8
| bne ->fff_fallback
| checktp CARG2, LJ_TISNUM
| bls ->fff_restv
| b ->fff_fallback

View File

@ -891,7 +891,7 @@ static const unsigned int build_actionlist[5777] = {
0x0006004d,
0xe1c900d0,
0xe35b0008,
0x3a000000,
0x1a000000,
0x00050046,
0xe3710000,
0x000a0000,