From 3990f0f2731c2289eaefefc9aff5bdcaee6c3289 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 18 Jun 2023 18:23:13 +0200 Subject: fix memory bugs --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common.h') 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) { -- cgit v1.2.3