diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-29 18:21:46 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-29 18:21:46 -0200 |
commit | fca0a12e23f964006ce43d35ab86b27c6bbb0a48 (patch) | |
tree | 7c57492d6ae7d2b2178906e1968295b3ec83eb9f /ltable.c | |
parent | 72659a06050632da1a9b4c492302be46ac283f6b (diff) | |
download | lua-fca0a12e23f964006ce43d35ab86b27c6bbb0a48.tar.gz lua-fca0a12e23f964006ce43d35ab86b27c6bbb0a48.tar.bz2 lua-fca0a12e23f964006ce43d35ab86b27c6bbb0a48.zip |
avoid clashing names between macros and fields
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -172,8 +172,8 @@ static void numuse (const Table *t, int *narray, int *nhash) { | |||
172 | /* count elements in hash part */ | 172 | /* count elements in hash part */ |
173 | i = sizenode(t); | 173 | i = sizenode(t); |
174 | while (i--) { | 174 | while (i--) { |
175 | if (ttype(&t->node[i].val) != LUA_TNIL) { | 175 | if (ttype(val(&t->node[i])) != LUA_TNIL) { |
176 | int k = arrayindex(&t->node[i].key); | 176 | int k = arrayindex(key(&t->node[i])); |
177 | if (k >= 0) /* is `key' an appropriate array index? */ | 177 | if (k >= 0) /* is `key' an appropriate array index? */ |
178 | nums[luaO_log2(k-1)+1]++; /* count as such */ | 178 | nums[luaO_log2(k-1)+1]++; /* count as such */ |
179 | totaluse++; | 179 | totaluse++; |