diff options
author | Nick Clifton <nickc@redhat.com> | 2002-05-17 09:52:04 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-05-17 09:52:04 +0000 |
commit | d214f641d7edbc19ef58b12ec5dcbd2d399b93c6 (patch) | |
tree | 2e0c0d85b8a6b069acead0ac4c9ea2eae2850c01 /bfd/hash.c | |
parent | ca2fe352d5b4bac3ed04de7914c798a70705f0b3 (diff) | |
download | gdb-d214f641d7edbc19ef58b12ec5dcbd2d399b93c6.tar.gz |
Remove computation of len from inside hash loop.
Diffstat (limited to 'bfd/hash.c')
-rw-r--r-- | bfd/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/hash.c b/bfd/hash.c index 9766eaf0cf2..a498cce46c9 100644 --- a/bfd/hash.c +++ b/bfd/hash.c @@ -375,8 +375,8 @@ bfd_hash_lookup (table, string, create, copy) { hash += c + (c << 17); hash ^= hash >> 2; - ++len; } + len = (s - (const unsigned char *) string) - 1; hash += len + (len << 17); hash ^= hash >> 2; |