refactor tests to fix ubsan suppressions

This commit is contained in:
MarcoFalke
2022-01-02 16:53:02 +01:00
parent 1824644a36
commit faedb111d2
8 changed files with 25 additions and 34 deletions

View File

@@ -73,7 +73,7 @@ BOOST_AUTO_TEST_CASE(CheckProofOfWork_test_overflow_target)
{
const auto consensus = CreateChainParams(*m_node.args, CBaseChainParams::MAIN)->GetConsensus();
uint256 hash;
unsigned int nBits = ~0x00800000;
unsigned int nBits{~0x00800000U};
hash.SetHex("0x1");
BOOST_CHECK(!CheckProofOfWork(hash, nBits, consensus));
}