aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-10 20:10:30 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-10 20:10:30 -0200
commita4c35a3269f0581da212b3c4abd04989f88425ce (patch)
treee46d6548e1ccbae3cfd4af102eedd881d0454e55 /ldo.c
parent9cd36059ad6f3f6750b8cff54c305ae347c6caca (diff)
downloadlua-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldo.c b/ldo.c
index aaf4de55..6f7a32f9 100644
--- a/ldo.c
+++ b/ldo.c
@@ -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 */