diff options
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 */ |