mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Change signed->unsigned at 3 code sites
This resolves signed/unsigned comparison warnings.
This commit is contained in:
parent
5aa0b23825
commit
735a60698c
@ -648,7 +648,7 @@ bool CTxDB::LoadBlockIndex()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check level 4: check whether spent txouts were spent within the main chain
|
// check level 4: check whether spent txouts were spent within the main chain
|
||||||
int nOutput = 0;
|
unsigned int nOutput = 0;
|
||||||
if (nCheckLevel>3)
|
if (nCheckLevel>3)
|
||||||
{
|
{
|
||||||
BOOST_FOREACH(const CDiskTxPos &txpos, txindex.vSpent)
|
BOOST_FOREACH(const CDiskTxPos &txpos, txindex.vSpent)
|
||||||
|
@ -498,7 +498,7 @@ void ThreadSocketHandler2(void* parg)
|
|||||||
{
|
{
|
||||||
printf("ThreadSocketHandler started\n");
|
printf("ThreadSocketHandler started\n");
|
||||||
list<CNode*> vNodesDisconnected;
|
list<CNode*> vNodesDisconnected;
|
||||||
int nPrevNodeCount = 0;
|
unsigned int nPrevNodeCount = 0;
|
||||||
|
|
||||||
loop
|
loop
|
||||||
{
|
{
|
||||||
|
@ -579,9 +579,9 @@ template <typename T> class CMedianFilter
|
|||||||
private:
|
private:
|
||||||
std::vector<T> vValues;
|
std::vector<T> vValues;
|
||||||
std::vector<T> vSorted;
|
std::vector<T> vSorted;
|
||||||
int nSize;
|
unsigned int nSize;
|
||||||
public:
|
public:
|
||||||
CMedianFilter(int size, T initial_value):
|
CMedianFilter(unsigned int size, T initial_value):
|
||||||
nSize(size)
|
nSize(size)
|
||||||
{
|
{
|
||||||
vValues.reserve(size);
|
vValues.reserve(size);
|
||||||
|
Loading…
Reference in New Issue
Block a user