From fca0a12e23f964006ce43d35ab86b27c6bbb0a48 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 29 Nov 2001 18:21:46 -0200 Subject: avoid clashing names between macros and fields --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index b9e42c18..61a5866d 100644 --- a/ltable.c +++ b/ltable.c @@ -172,8 +172,8 @@ static void numuse (const Table *t, int *narray, int *nhash) { /* count elements in hash part */ i = sizenode(t); while (i--) { - if (ttype(&t->node[i].val) != LUA_TNIL) { - int k = arrayindex(&t->node[i].key); + if (ttype(val(&t->node[i])) != LUA_TNIL) { + int k = arrayindex(key(&t->node[i])); if (k >= 0) /* is `key' an appropriate array index? */ nums[luaO_log2(k-1)+1]++; /* count as such */ totaluse++; -- cgit v1.2.3-55-g6feb