From ae7b78426908e77f19cc34d5e096103141d08969 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 22 Jun 2024 22:56:40 +0200 Subject: Don’t assume that uints are 64 bits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/strview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/strview.c b/src/strview.c index 70e78f0..3ed9274 100644 --- a/src/strview.c +++ b/src/strview.c @@ -1,3 +1,4 @@ +#include #include #include "common.h" @@ -10,7 +11,7 @@ strview_hash(strview_t sv) uint64_t h = 0x100; for (size_t i = 0; likely(i < sv.len); i++) { h ^= sv.p[i]; - h *= 1111111111111111111u; + h *= UINT64_C(1111111111111111111); } return h; } -- cgit v1.2.3