diff options
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++; |