diff options
author | Mike Pall <mike> | 2009-12-08 20:35:29 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-08 20:35:29 +0100 |
commit | 3f1f9e11f4f699ae94182d4cba158092f434a7f6 (patch) | |
tree | 88fbb674a21a1d554d4b1ee9d4ef2c5fed6a1d88 /src/lj_lib.c | |
parent | 5287b9326479ea2b7dddd6f642673e58e5a7f354 (diff) | |
download | luajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.tar.gz luajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.tar.bz2 luajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.zip |
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.c | 2 |
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 | } |