avoid clashing names between macros and fields

This commit is contained in:
Roberto Ierusalimschy
2001-11-29 18:21:46 -02:00
parent 72659a0605
commit fca0a12e23
3 changed files with 7 additions and 7 deletions

View File

@@ -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++;