diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-30 15:54:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-30 15:54:49 -0300 |
commit | 50a82ec1b9adafa108756077b018925131f131e8 (patch) | |
tree | 0861e68fabf699e747fb99e635a66e7ff76ca122 /ltm.c | |
parent | ed1751bc32bd295e27881e9d6f6bb17019d59c3e (diff) | |
download | lua-50a82ec1b9adafa108756077b018925131f131e8.tar.gz lua-50a82ec1b9adafa108756077b018925131f131e8.tar.bz2 lua-50a82ec1b9adafa108756077b018925131f131e8.zip |
gc tag methods for udata are called in (reverse) tag order
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.39 2000/03/30 16:41:51 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.40 2000/05/24 13:54:49 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 | */ |
@@ -61,6 +61,7 @@ static void init_entry (lua_State *L, int tag) { | |||
61 | int i; | 61 | int i; |
62 | for (i=0; i<IM_N; i++) | 62 | for (i=0; i<IM_N; i++) |
63 | ttype(luaT_getim(L, tag, i)) = TAG_NIL; | 63 | ttype(luaT_getim(L, tag, i)) = TAG_NIL; |
64 | L->IMtable[tag].collected = NULL; | ||
64 | } | 65 | } |
65 | 66 | ||
66 | 67 | ||