* symbols.c: Convert to ISO-C.
[deliverable/binutils-gdb.git] / libiberty / hashtab.c
index cbf82592be1ef60ac18cc5bba7112ca86f253322..231fbc0dd7ad1a589d479188afe3a965cacb7c0e 100644 (file)
@@ -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];
 }
 
This page took 0.024921 seconds and 4 git commands to generate.