summaryrefslogtreecommitdiff
path: root/lib/hash.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-24 05:04:07 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-24 05:42:07 +0100
commit8dbe6957da40b713a214d765a83cbe81d24e753e (patch)
treef8d5b0321782e893e1070a27c83c4f1dbf39e53f /lib/hash.h
parent97f83b42af28a9ecbfd714a8337fd399a32cfb78 (diff)
lib: update from upstream
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 */