diff options
-rw-r--r-- | libihash/ChangeLog | 7 | ||||
-rw-r--r-- | libihash/ihash.h | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libihash/ChangeLog b/libihash/ChangeLog index 75e73476..9b02e38a 100644 --- a/libihash/ChangeLog +++ b/libihash/ChangeLog @@ -1,4 +1,9 @@ -2004-04-02 Marco Gerards <metgerards@student.han.nl> +2004-04-21 Marcus Brinkmann <marcus@gnu.org> + + * ihash.h (HURD_IHASH_ITERATE): Don't use increment operator in + assignment, but just add one. Reported by Ognyan Kulev. + +2004-04-01 Marco Gerards <metgerards@student.han.nl> * ihash.c (hurd_ihash_remove): Don't look for the index when the hashtable is empty. diff --git a/libihash/ihash.h b/libihash/ihash.h index 0be65efe..a4e76dc4 100644 --- a/libihash/ihash.h +++ b/libihash/ihash.h @@ -215,7 +215,7 @@ hurd_ihash_value_t hurd_ihash_find (hurd_ihash_t ht, hurd_ihash_key_t key); < (ht)->size \ && (val = *_hurd_ihash_valuep, 1); \ _hurd_ihash_valuep = (hurd_ihash_value_t *) \ - (((_hurd_ihash_item_t) _hurd_ihash_valuep)++)) \ + (((_hurd_ihash_item_t) _hurd_ihash_valuep) + 1)) \ if (val != _HURD_IHASH_EMPTY && val != _HURD_IHASH_DELETED) /* Remove the entry with the key KEY from the hash table HT. If such |