aboutsummaryrefslogtreecommitdiff
path: root/libiberty/hashtab.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2003-03-12 17:28:10 +0000
committerDJ Delorie <dj@redhat.com>2003-03-12 17:28:10 +0000
commit2336e177169b6a339fdada43bc3d1ce8173290cd (patch)
treed0992296c1cf63c906e2e0dde456e02243ef23dd /libiberty/hashtab.c
parent8bedc05091d9d4874d382a6c66b7845133f7b5ea (diff)
downloadgdb-2336e177169b6a339fdada43bc3d1ce8173290cd.zip
gdb-2336e177169b6a339fdada43bc3d1ce8173290cd.tar.gz
gdb-2336e177169b6a339fdada43bc3d1ce8173290cd.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/hashtab.c')
-rw-r--r--libiberty/hashtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c
index a0cb5a7..ebaa43b 100644
--- a/libiberty/hashtab.c
+++ b/libiberty/hashtab.c
@@ -376,8 +376,8 @@ htab_expand (htab)
/* Resize only when table after removal of unused elements is either
too full or too empty. */
if ((htab->n_elements - htab->n_deleted) * 2 > htab->size
- || (htab->n_elements - htab->n_deleted) * 8 < htab->size
- && htab->size > 32)
+ || ((htab->n_elements - htab->n_deleted) * 8 < htab->size
+ && htab->size > 32))
nsize = higher_prime_number ((htab->n_elements - htab->n_deleted) * 2);
else
nsize = htab->size;