macros key', val', and `node' don't need the state

This commit is contained in:
Roberto Ierusalimschy
1999-11-23 11:58:02 -02:00
parent 514783de9d
commit e5743adb21
3 changed files with 12 additions and 12 deletions

6
lgc.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lgc.c,v 1.31 1999/11/10 15:40:46 roberto Exp roberto $
** $Id: lgc.c,v 1.32 1999/11/22 13:12:07 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -54,8 +54,8 @@ static void hashmark (lua_State *L, Hash *h) {
int i;
h->marked = 1;
for (i=h->size-1; i>=0; i--) {
Node *n = node(L, h,i);
if (ttype(key(L, n)) != LUA_T_NIL) {
Node *n = node(h,i);
if (ttype(key(n)) != LUA_T_NIL) {
markobject(L, &n->key);
markobject(L, &n->val);
}