summaryrefslogtreecommitdiff
path: root/lib/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hash.h')
-rw-r--r--lib/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hash.h b/lib/hash.h
index d14f331..7dd52d0 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -117,7 +117,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 /* HASH_H */