diff options
author | DJ Delorie <dj@redhat.com> | 2003-10-30 18:39:13 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2003-10-30 18:39:13 +0000 |
commit | 686e72d729cf3ba9e15d5b9700d63c6a5bd88d21 (patch) | |
tree | 280641121146d5e6e1d9a2356741a4df16b283b6 /libiberty/hashtab.c | |
parent | 0aa92b58af84bdd4b2c41e617e08cf48e4870db6 (diff) | |
download | gdb-686e72d729cf3ba9e15d5b9700d63c6a5bd88d21.zip gdb-686e72d729cf3ba9e15d5b9700d63c6a5bd88d21.tar.gz gdb-686e72d729cf3ba9e15d5b9700d63c6a5bd88d21.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/hashtab.c')
-rw-r--r-- | libiberty/hashtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c index cbf8259..231fbc0 100644 --- a/libiberty/hashtab.c +++ b/libiberty/hashtab.c @@ -535,14 +535,14 @@ htab_find_slot_with_hash (htab, element, hash, insert) if (insert == NO_INSERT) return NULL; - htab->n_elements++; - if (first_deleted_slot) { + htab->n_deleted--; *first_deleted_slot = EMPTY_ENTRY; return first_deleted_slot; } + htab->n_elements++; return &htab->entries[index]; } |