diff options
Diffstat (limited to 'kern/hash.h')
-rw-r--r-- | kern/hash.h | 2 |
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 */ |