diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-12-10 20:10:30 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-12-10 20:10:30 -0200 |
commit | a4c35a3269f0581da212b3c4abd04989f88425ce (patch) | |
tree | e46d6548e1ccbae3cfd4af102eedd881d0454e55 /ldo.c | |
parent | 9cd36059ad6f3f6750b8cff54c305ae347c6caca (diff) | |
download | lua-a4c35a3269f0581da212b3c4abd04989f88425ce.tar.gz lua-a4c35a3269f0581da212b3c4abd04989f88425ce.tar.bz2 lua-a4c35a3269f0581da212b3c4abd04989f88425ce.zip |
it doesn't pay to optimize absence when it is an error
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -143,7 +143,7 @@ void luaD_call (lua_State *L, StkId func) { | |||
143 | if (ttype(func) != LUA_TFUNCTION) { | 143 | if (ttype(func) != LUA_TFUNCTION) { |
144 | /* `func' is not a function; check the `function' tag method */ | 144 | /* `func' is not a function; check the `function' tag method */ |
145 | const TObject *tm = luaT_gettmbyobj(L, func, TM_CALL); | 145 | const TObject *tm = luaT_gettmbyobj(L, func, TM_CALL); |
146 | if (tm == NULL || ttype(tm) != LUA_TFUNCTION) | 146 | if (ttype(tm) != LUA_TFUNCTION) |
147 | luaG_typeerror(L, func, "call"); | 147 | luaG_typeerror(L, func, "call"); |
148 | luaD_openstack(L, func); | 148 | luaD_openstack(L, func); |
149 | setobj(func, tm); /* tag method is the new function to be called */ | 149 | setobj(func, tm); /* tag method is the new function to be called */ |