mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
* bcache.c (expand_hash_table): Use hash_function, not hash.
This commit is contained in:
parent
716b65bf40
commit
d3aff95935
@ -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 New Issue
Block a user