aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-29 18:21:46 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-29 18:21:46 -0200
commitfca0a12e23f964006ce43d35ab86b27c6bbb0a48 (patch)
tree7c57492d6ae7d2b2178906e1968295b3ec83eb9f /ltable.c
parent72659a06050632da1a9b4c492302be46ac283f6b (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
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) {
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++;