diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.53 2010/11/11 15:38:43 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.54 2011/04/05 18:32:28 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -336,7 +336,7 @@ void luaH_resizearray (lua_State *L, Table *t, int nasize) { | |||
336 | 336 | ||
337 | static void rehash (lua_State *L, Table *t, const TValue *ek) { | 337 | static void rehash (lua_State *L, Table *t, const TValue *ek) { |
338 | int nasize, na; | 338 | int nasize, na; |
339 | int nums[MAXBITS+1]; /* nums[i] = number of keys between 2^(i-1) and 2^i */ | 339 | int nums[MAXBITS+1]; /* nums[i] = number of keys with 2^(i-1) < k <= 2^i */ |
340 | int i; | 340 | int i; |
341 | int totaluse; | 341 | int totaluse; |
342 | for (i=0; i<=MAXBITS; i++) nums[i] = 0; /* reset counts */ | 342 | for (i=0; i<=MAXBITS; i++) nums[i] = 0; /* reset counts */ |