extra parentheses deleted

This commit is contained in:
aks 2024-06-15 04:53:54 +04:00 committed by GitHub
parent f49f739333
commit 187e40df5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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);