This commit is contained in:
Roberto Ierusalimschy
2011-05-02 14:33:01 -03:00
parent d34271fe42
commit c9ce754e38
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltable.c,v 2.53 2010/11/11 15:38:43 roberto Exp roberto $
** $Id: ltable.c,v 2.54 2011/04/05 18:32:28 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -336,7 +336,7 @@ void luaH_resizearray (lua_State *L, Table *t, int nasize) {
static void rehash (lua_State *L, Table *t, const TValue *ek) {
int nasize, na;
int nums[MAXBITS+1]; /* nums[i] = number of keys between 2^(i-1) and 2^i */
int nums[MAXBITS+1]; /* nums[i] = number of keys with 2^(i-1) < k <= 2^i */
int i;
int totaluse;
for (i=0; i<=MAXBITS; i++) nums[i] = 0; /* reset counts */