summaryrefslogtreecommitdiff
path: root/src/lj_lib.c
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-08 20:35:29 +0100
committerMike Pall <mike>2009-12-08 20:35:29 +0100
commit3f1f9e11f4f699ae94182d4cba158092f434a7f6 (patch)
tree88fbb674a21a1d554d4b1ee9d4ef2c5fed6a1d88 /src/lj_lib.c
parent5287b9326479ea2b7dddd6f642673e58e5a7f354 (diff)
downloadluajit2-3f1f9e11f4f699ae94182d4cba158092f434a7f6.tar.gz
Fast forward to sync public repo.
Compile math.sinh(), math.cosh(), math.tanh() and math.random(). Compile various io.*() functions. Drive the GC forward on string allocations in the parser. Improve KNUM fuse vs. load heuristics. Add abstract C call handling to IR.
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)
{
TValue *o = L->base + narg-1;
if (!(o < L->top &&
- (tvisnum(o) || (tvisstr(o) && lj_str_numconv(strVdata(o), o)))))
+ (tvisnum(o) || (tvisstr(o) && lj_str_tonum(strV(o), o)))))
lj_err_argt(L, narg, LUA_TNUMBER);
return numV(o);
}