diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2004-04-21 21:34:16 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2004-04-21 21:34:16 +0000 |
commit | 01a0ed291e83710bb49df9e9726054e9d2647fae (patch) | |
tree | 115c3247a547034aa8a5bc235a90cd1f9146ce85 /libihash | |
parent | 83e12119b30fd0c01204aff8f8b40a1700eb72ab (diff) |
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.
Diffstat (limited to 'libihash')
-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 |