diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-03 18:45:23 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-03 18:45:23 -0200 |
commit | 7135803cc87fafe80494bdc094613515487410b9 (patch) | |
tree | 439f9c6f1173707f7e37520c550e48edb5cafab8 /ltm.c | |
parent | b7567b667367180b75fbb60f7a73b75e5e89889e (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||