Re: Bug in GHash



On 23 Jan 1999, Owen Taylor wrote:
> Jeff Garzik <jgarzik@pobox.com> writes:
> > One major and one minor bug in ghash:
> > 
> > * g_hash_table_insert _overwrites_ whatever is in the current bucket
> > with the new value.  (it should instead append to a list)
> 
> I don't think so.
> 
> On failure g_hash_table_lookup_node() returns a pointer tail
> of the list for the bucket. (By common sense, hash tables
> are not badly broken. They are used all over the place
> in GTK+ and the GIMP)

Ah-hah.  I will undo the damage then :) -- the new hash-test doesn't
reproduce the earlier problems.

	Jeff






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]