diff options
author | Roland McGrath <roland@gnu.org> | 2004-10-05 18:09:38 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-10-05 18:09:38 +0000 |
commit | 724b3ea926eec6d6e945a9d0faa2a1a5dbb33323 (patch) | |
tree | 6f83a7265ab2c4b8735026fdc4ed38a65cbdeb80 /bfd/hash.c | |
parent | 10b3939b33a018862f9e89399d07eb2e40071f5b (diff) | |
download | gdb-724b3ea926eec6d6e945a9d0faa2a1a5dbb33323.zip gdb-724b3ea926eec6d6e945a9d0faa2a1a5dbb33323.tar.gz gdb-724b3ea926eec6d6e945a9d0faa2a1a5dbb33323.tar.bz2 |
2004-10-04 Roland McGrath <roland@redhat.com>
* hash.c (bfd_hash_set_default_size): Use const for table.
Use size_t instead of int for variable compared to sizeof results.
Diffstat (limited to 'bfd/hash.c')
-rw-r--r-- | bfd/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -504,12 +504,12 @@ bfd_hash_traverse (table, func, info) void bfd_hash_set_default_size (bfd_size_type hash_size) { - int index; /* Extend this prime list if you want more granularity of hash table size. */ - static bfd_size_type hash_size_primes[] = + static const bfd_size_type hash_size_primes[] = { 1021, 4051, 8599, 16699 }; + size_t index; /* Work out best prime number near the hash_size. */ for (index = 0; index < ARRAY_SIZE (hash_size_primes) - 1; ++index) |