summaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltm.c b/ltm.c
index d9a8dcac..70fd9807 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 1.97 2002/06/25 19:17:22 roberto Exp roberto $ 2** $Id: ltm.c,v 1.98 2002/07/17 16:25:13 roberto Exp $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -47,7 +47,7 @@ void luaT_init (lua_State *L) {
47const TObject *luaT_gettm (Table *events, TMS event, TString *ename) { 47const TObject *luaT_gettm (Table *events, TMS event, TString *ename) {
48 const TObject *tm = luaH_getstr(events, ename); 48 const TObject *tm = luaH_getstr(events, ename);
49 lua_assert(event <= TM_MODE); 49 lua_assert(event <= TM_MODE);
50 if (ttype(tm) == LUA_TNIL) { /* no tag method? */ 50 if (ttisnil(tm)) { /* no tag method? */
51 events->flags |= (1u<<event); /* cache this fact */ 51 events->flags |= (1u<<event); /* cache this fact */
52 return NULL; 52 return NULL;
53 } 53 }