aboutsummaryrefslogtreecommitdiff
path: root/src/lj_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_lib.c')
-rw-r--r--src/lj_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_lib.c b/src/lj_lib.c
index 683c66d6..d8254093 100644
--- a/src/lj_lib.c
+++ b/src/lj_lib.c
@@ -152,7 +152,7 @@ lua_Number lj_lib_checknum(lua_State *L, int narg)
152{ 152{
153 TValue *o = L->base + narg-1; 153 TValue *o = L->base + narg-1;
154 if (!(o < L->top && 154 if (!(o < L->top &&
155 (tvisnum(o) || (tvisstr(o) && lj_str_numconv(strVdata(o), o))))) 155 (tvisnum(o) || (tvisstr(o) && lj_str_tonum(strV(o), o)))))
156 lj_err_argt(L, narg, LUA_TNUMBER); 156 lj_err_argt(L, narg, LUA_TNUMBER);
157 return numV(o); 157 return numV(o);
158} 158}