fix: Integer literal is too large to be represented as signed integer typed (#793)

This commit is contained in:
Priyanshu 2021-02-18 08:40:29 +05:30 committed by GitHub
parent 1028b7b9aa
commit 3a85f72d7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}