extra parentheses deleted
This commit is contained in:
parent
f49f739333
commit
187e40df5d
|
@ -126,7 +126,7 @@ hashtable_expand(switch_hashtable_t *h)
|
||||||
realloc(h->table, newsize * sizeof(struct entry *));
|
realloc(h->table, newsize * sizeof(struct entry *));
|
||||||
if (NULL == newtable) { (h->primeindex)--; return 0; }
|
if (NULL == newtable) { (h->primeindex)--; return 0; }
|
||||||
h->table = newtable;
|
h->table = newtable;
|
||||||
memset(&newtable[h->tablelength], 0, ((newsize - h->tablelength) * sizeof(struct entry*)));
|
memset(&newtable[h->tablelength], 0, (newsize - h->tablelength) * sizeof(struct entry*));
|
||||||
for (i = 0; i < h->tablelength; i++) {
|
for (i = 0; i < h->tablelength; i++) {
|
||||||
for (pE = &(newtable[i]), e = *pE; e != NULL; e = *pE) {
|
for (pE = &(newtable[i]), e = *pE; e != NULL; e = *pE) {
|
||||||
index = indexFor(newsize,e->h);
|
index = indexFor(newsize,e->h);
|
||||||
|
|
Loading…
Reference in New Issue