* bcache.c (expand_hash_table): Use hash_function, not hash.
This commit is contained in:
parent
716b65bf40
commit
d3aff95935
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-09-27 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* bcache.c (expand_hash_table): Use hash_function, not hash.
|
||||
|
||||
2010-09-27 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* gdb_wchar.h: Change minimum libiconv to 0x108.
|
||||
|
|
|
@ -184,7 +184,8 @@ expand_hash_table (struct bcache *bcache)
|
|||
struct bstring **new_bucket;
|
||||
next = s->next;
|
||||
|
||||
new_bucket = &new_buckets[(hash (&s->d.data, s->length)
|
||||
new_bucket = &new_buckets[(bcache->hash_function (&s->d.data,
|
||||
s->length)
|
||||
% new_num_buckets)];
|
||||
s->next = *new_bucket;
|
||||
*new_bucket = s;
|
||||
|
|
Loading…
Reference in a new issue