2001-10-30 Daniel Berlin <dan@cgsoftware.com>
* bitmap.c (bitmap_element_free): Don't forget to update head->indx
when we update head->current.
From-SVN: r46669
+2001-10-30 Daniel Berlin <dan@cgsoftware.com>
+
+ * bitmap.c (bitmap_element_free): Don't forget to update head->indx
+ when we update head->current.
+
2001-10-30 Neil Booth <neil@daikokuya.demon.co.uk>
* tree.c (id_string_size): Remove.
/* Since the first thing we try is to insert before current,
make current the next entry in preference to the previous. */
if (head->current == elt)
- head->current = next != 0 ? next : prev;
+ {
+ head->current = next != 0 ? next : prev;
+ if (head->current)
+ head->indx = head->current->indx;
+ }
elt->next = bitmap_free;
bitmap_free = elt;