diff options
Diffstat (limited to 'src/lib_base.c')
-rw-r--r-- | src/lib_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib_base.c b/src/lib_base.c index 0a13f36b..6a842d2c 100644 --- a/src/lib_base.c +++ b/src/lib_base.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include "lj_bc.h" | 25 | #include "lj_bc.h" |
26 | #include "lj_ff.h" | 26 | #include "lj_ff.h" |
27 | #include "lj_dispatch.h" | 27 | #include "lj_dispatch.h" |
28 | #include "lj_ctype.h" | 28 | #include "lj_char.h" |
29 | #include "lj_lib.h" | 29 | #include "lj_lib.h" |
30 | 30 | ||
31 | /* -- Base library: checks ------------------------------------------------ */ | 31 | /* -- Base library: checks ------------------------------------------------ */ |
@@ -197,7 +197,7 @@ LJLIB_ASM(tonumber) LJLIB_REC(.) | |||
197 | lj_err_arg(L, 2, LJ_ERR_BASERNG); | 197 | lj_err_arg(L, 2, LJ_ERR_BASERNG); |
198 | ul = strtoul(p, &ep, base); | 198 | ul = strtoul(p, &ep, base); |
199 | if (p != ep) { | 199 | if (p != ep) { |
200 | while (lj_ctype_isspace((unsigned char)(*ep))) ep++; | 200 | while (lj_char_isspace((unsigned char)(*ep))) ep++; |
201 | if (*ep == '\0') { | 201 | if (*ep == '\0') { |
202 | setnumV(L->base-1, cast_num(ul)); | 202 | setnumV(L->base-1, cast_num(ul)); |
203 | return FFH_RES(1); | 203 | return FFH_RES(1); |