mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 05:21:49 +03:00
fix: Integer literal is too large to be represented as signed integer typed (#793)
This commit is contained in:
parent
1028b7b9aa
commit
3a85f72d7a
@ -33,10 +33,10 @@ uint64_t sdbm(const char* s)
|
|||||||
*/
|
*/
|
||||||
void test_sdbm()
|
void test_sdbm()
|
||||||
{
|
{
|
||||||
assert(sdbm("Hello World") == 12881824461405877380);
|
assert(sdbm("Hello World") == 12881824461405877380U);
|
||||||
assert(sdbm("Hello World!") == 7903571203300273309);
|
assert(sdbm("Hello World!") == 7903571203300273309);
|
||||||
assert(sdbm("Hello world") == 15154913742888948900);
|
assert(sdbm("Hello world") == 15154913742888948900U);
|
||||||
assert(sdbm("Hello world!") == 15254999417003201661);
|
assert(sdbm("Hello world!") == 15254999417003201661U);
|
||||||
printf("Tests passed\n");
|
printf("Tests passed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user