Skip to content

Commit bedb8d8

Browse files
committed
Avoid comparision of integers with different signs
1 parent b805dbb commit bedb8d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/miner_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void MinerTestingSetup::TestPackageSelection(const CChainParams& chainparams, co
123123
m_node.mempool->addUnchecked(entry.Fee(50000).Time(GetTime()).SpendsCoinbase(false).FromTx(tx));
124124

125125
std::unique_ptr<CBlockTemplate> pblocktemplate = AssemblerForTest(chainparams).CreateNewBlock(scriptPubKey);
126-
BOOST_REQUIRE_EQUAL(pblocktemplate->block.vtx.size(), 4);
126+
BOOST_REQUIRE_EQUAL(pblocktemplate->block.vtx.size(), 4U);
127127
BOOST_CHECK(pblocktemplate->block.vtx[1]->GetHash() == hashParentTx);
128128
BOOST_CHECK(pblocktemplate->block.vtx[2]->GetHash() == hashHighFeeTx);
129129
BOOST_CHECK(pblocktemplate->block.vtx[3]->GetHash() == hashMediumFeeTx);
@@ -158,7 +158,7 @@ void MinerTestingSetup::TestPackageSelection(const CChainParams& chainparams, co
158158
hashLowFeeTx = tx.GetHash();
159159
m_node.mempool->addUnchecked(entry.Fee(feeToUse+2).FromTx(tx));
160160
pblocktemplate = AssemblerForTest(chainparams).CreateNewBlock(scriptPubKey);
161-
BOOST_REQUIRE_EQUAL(pblocktemplate->block.vtx.size(), 6);
161+
BOOST_REQUIRE_EQUAL(pblocktemplate->block.vtx.size(), 6U);
162162
BOOST_CHECK(pblocktemplate->block.vtx[4]->GetHash() == hashFreeTx);
163163
BOOST_CHECK(pblocktemplate->block.vtx[5]->GetHash() == hashLowFeeTx);
164164

@@ -193,7 +193,7 @@ void MinerTestingSetup::TestPackageSelection(const CChainParams& chainparams, co
193193
tx.vout[0].nValue = 100000000 - 10000; // 10k satoshi fee
194194
m_node.mempool->addUnchecked(entry.Fee(10000).FromTx(tx));
195195
pblocktemplate = AssemblerForTest(chainparams).CreateNewBlock(scriptPubKey);
196-
BOOST_REQUIRE_EQUAL(pblocktemplate->block.vtx.size(), 9);
196+
BOOST_REQUIRE_EQUAL(pblocktemplate->block.vtx.size(), 9U);
197197
BOOST_CHECK(pblocktemplate->block.vtx[8]->GetHash() == hashLowFeeTx2);
198198
}
199199

0 commit comments

Comments
 (0)