summaryrefslogtreecommitdiff
path: root/kern/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/hash.h')
-rw-r--r--kern/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/hash.h b/kern/hash.h
index 182d92b9..c854661b 100644
--- a/kern/hash.h
+++ b/kern/hash.h
@@ -110,7 +110,7 @@ hash_str(const char *str, unsigned int bits)
hash = ((hash << 5) - hash) + c;
}
- return hash & ((1 << bits) - 1);
+ return hash & ((1UL << bits) - 1);
}
#endif /* KERN_HASH_H */