aboutsummaryrefslogtreecommitdiff
path: root/libiberty/hashtab.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-10-07 17:24:36 +0000
committerDJ Delorie <dj@redhat.com>2001-10-07 17:24:36 +0000
commite6450fe56177c2ce3faf4601ed4a3edf42cd90eb (patch)
treeac07269b8f13ae4260a052cceae08934571c5a96 /libiberty/hashtab.c
parent6ce8b3699c614ee2f4e2deb7259886a1ca10a0a5 (diff)
downloadfsf-binutils-gdb-e6450fe56177c2ce3faf4601ed4a3edf42cd90eb.zip
fsf-binutils-gdb-e6450fe56177c2ce3faf4601ed4a3edf42cd90eb.tar.gz
fsf-binutils-gdb-e6450fe56177c2ce3faf4601ed4a3edf42cd90eb.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/hashtab.c')
-rw-r--r--libiberty/hashtab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c
index 89bfe08..36ad6e4 100644
--- a/libiberty/hashtab.c
+++ b/libiberty/hashtab.c
@@ -80,7 +80,7 @@ higher_prime_number (n)
{
/* These are primes that are near, but slightly smaller than, a
power of two. */
- static unsigned long primes[] = {
+ static const unsigned long primes[] = {
(unsigned long) 2,
(unsigned long) 7,
(unsigned long) 13,
@@ -115,12 +115,12 @@ higher_prime_number (n)
((unsigned long) 2147483647) + ((unsigned long) 2147483644),
};
- unsigned long* low = &primes[0];
- unsigned long* high = &primes[sizeof(primes) / sizeof(primes[0])];
+ const unsigned long *low = &primes[0];
+ const unsigned long *high = &primes[sizeof(primes) / sizeof(primes[0])];
while (low != high)
{
- unsigned long* mid = low + (high - low) / 2;
+ const unsigned long *mid = low + (high - low) / 2;
if (n > *mid)
low = mid + 1;
else