From 3a85f72d7a6aa993186ca1f7805b55e77edd4820 Mon Sep 17 00:00:00 2001 From: Priyanshu Date: Thu, 18 Feb 2021 08:40:29 +0530 Subject: [PATCH] fix: Integer literal is too large to be represented as signed integer typed (#793) --- hash/hash_sdbm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hash/hash_sdbm.c b/hash/hash_sdbm.c index aa3ee0ca..4a5d279b 100644 --- a/hash/hash_sdbm.c +++ b/hash/hash_sdbm.c @@ -33,10 +33,10 @@ uint64_t sdbm(const char* s) */ void test_sdbm() { - assert(sdbm("Hello World") == 12881824461405877380); + assert(sdbm("Hello World") == 12881824461405877380U); assert(sdbm("Hello World!") == 7903571203300273309); - assert(sdbm("Hello world") == 15154913742888948900); - assert(sdbm("Hello world!") == 15254999417003201661); + assert(sdbm("Hello world") == 15154913742888948900U); + assert(sdbm("Hello world!") == 15254999417003201661U); printf("Tests passed\n"); }