mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 15:48:05 +00:00
test/bloom_tests: Use UL suffix for unsigned long number to ensure compatibility
This commit is contained in:
parent
f748ff730b
commit
2227725fcb
@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize)
|
|||||||
BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize_with_tweak)
|
BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize_with_tweak)
|
||||||
{
|
{
|
||||||
// Same test as bloom_create_insert_serialize, but we add a nTweak of 100
|
// Same test as bloom_create_insert_serialize, but we add a nTweak of 100
|
||||||
CBloomFilter filter(3, 0.01, 2147483649, BLOOM_UPDATE_ALL);
|
CBloomFilter filter(3, 0.01, 2147483649UL, BLOOM_UPDATE_ALL);
|
||||||
|
|
||||||
filter.insert(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8"));
|
filter.insert(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8"));
|
||||||
BOOST_CHECK_MESSAGE( filter.contains(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8")), "BloomFilter doesn't contain just-inserted object!");
|
BOOST_CHECK_MESSAGE( filter.contains(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8")), "BloomFilter doesn't contain just-inserted object!");
|
||||||
|
Loading…
Reference in New Issue
Block a user