summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-09-18 04:35:52 +0000
committerPaul Smith <psmith@gnu.org>2002-09-18 04:35:52 +0000
commitaf8a7a01bc712cb2939c8c022d99dd8ead7c39cf (patch)
tree1e59d09b065ad6ad3d3d096dbe6611d1499fb2aa /hash.c
parent7c55e8403733bf2f6731d4077b5a77f2bc0a7c58 (diff)
downloadmake-af8a7a01bc712cb2939c8c022d99dd8ead7c39cf.tar.gz
Add some indexing to the manual.
Fix a few simple casting warnings, etc.
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 2e37df25..9083b60a 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;
}