From 76652d5d02b31941ec085435f62b6c955d7e63d3 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 18 Sep 2002 04:35:52 +0000 Subject: Add some indexing to the manual. Fix a few simple casting warnings, etc. --- hash.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 2e37df2..9083b60 100644 --- a/hash.c +++ b/hash.c @@ -359,7 +359,11 @@ round_up_2 (n) n |= (n >> 4); n |= (n >> 8); n |= (n >> 16); + +#if !defined(HAVE_LIMITS_H) || ULONG_MAX > 4294967295 + /* We only need this on systems where unsigned long is >32 bits. */ n |= (n >> 32); +#endif return n + 1; } -- cgit v1.2.3