aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/strview.c3
1 files changed, 2 insertions, 1 deletions
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 <inttypes.h>
#include <string.h>
#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;
}