aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-03 18:45:23 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-03 18:45:23 -0200
commit7135803cc87fafe80494bdc094613515487410b9 (patch)
tree439f9c6f1173707f7e37520c550e48edb5cafab8 /ltm.c
parentb7567b667367180b75fbb60f7a73b75e5e89889e (diff)
downloadlua-7135803cc87fafe80494bdc094613515487410b9.tar.gz
lua-7135803cc87fafe80494bdc094613515487410b9.tar.bz2
lua-7135803cc87fafe80494bdc094613515487410b9.zip
"global" version of a nil object.
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 980fd4d6..a171d78a 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 1.3 1997/10/16 20:07:40 roberto Exp roberto $ 2** $Id: ltm.c,v 1.4 1997/10/24 17:17:24 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -168,7 +168,7 @@ TObject *luaT_gettagmethod (int t, char *event)
168 if (validevent(t, e)) 168 if (validevent(t, e))
169 return luaT_getim(t,e); 169 return luaT_getim(t,e);
170 else 170 else
171 return luaT_getim(LUA_T_NUMBER, IM_ADD); /* always nil */ 171 return &luaO_nilobject;
172} 172}
173 173
174 174