aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-18 18:23:13 +0200
committerlemon <lsof@mailbox.org>2023-06-18 18:23:13 +0200
commit3990f0f2731c2289eaefefc9aff5bdcaee6c3289 (patch)
tree7d97c52dc8018cd07daea062f22f31fa5898a1f1 /common.h
parent97621f5870d60722ae2bc13682c58d194bc20794 (diff)
fix memory bugs
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index 3d051af..05d6ddd 100644
--- a/common.h
+++ b/common.h
@@ -54,7 +54,7 @@ hashb(uint h, const void *d, uint n)
}
static inline uint
ptrhash(const void *p) {
- return (uint)(size_t)p * 2654435761;
+ return (uint)(size_t)p * 2654435761u;
}
static inline uint
popcnt(uvlong x) {