Re: Bug in GHash
- From: Jeff Garzik <jgarzik pobox com>
- To: Owen Taylor <otaylor redhat com>
- cc: gtk-devel-list redhat com
- Subject: Re: Bug in GHash
- Date: Sun, 24 Jan 1999 00:27:04 -0500 (EST)
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]