"global" version of a nil object.

This commit is contained in:
Roberto Ierusalimschy
1997-11-03 18:45:23 -02:00
parent b7567b6673
commit 7135803cc8
4 changed files with 13 additions and 16 deletions

4
ltm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: ltm.c,v 1.3 1997/10/16 20:07:40 roberto Exp roberto $
** $Id: ltm.c,v 1.4 1997/10/24 17:17:24 roberto Exp roberto $
** Tag methods
** See Copyright Notice in lua.h
*/
@@ -168,7 +168,7 @@ TObject *luaT_gettagmethod (int t, char *event)
if (validevent(t, e))
return luaT_getim(t,e);
else
return luaT_getim(LUA_T_NUMBER, IM_ADD); /* always nil */
return &luaO_nilobject;
}