diff options
-rw-r--r-- | src/db.cpp | 2 | ||||
-rw-r--r-- | src/net.cpp | 2 | ||||
-rw-r--r-- | src/util.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/db.cpp b/src/db.cpp index 39a41894d7..53da378fee 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -648,7 +648,7 @@ bool CTxDB::LoadBlockIndex() } } // check level 4: check whether spent txouts were spent within the main chain - int nOutput = 0; + unsigned int nOutput = 0; if (nCheckLevel>3) { BOOST_FOREACH(const CDiskTxPos &txpos, txindex.vSpent) diff --git a/src/net.cpp b/src/net.cpp index 38c0d3d582..d218dcfb5d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -498,7 +498,7 @@ void ThreadSocketHandler2(void* parg) { printf("ThreadSocketHandler started\n"); list<CNode*> vNodesDisconnected; - int nPrevNodeCount = 0; + unsigned int nPrevNodeCount = 0; loop { diff --git a/src/util.h b/src/util.h index fe8ca60b47..d9d8151b71 100644 --- a/src/util.h +++ b/src/util.h @@ -579,9 +579,9 @@ template <typename T> class CMedianFilter private: std::vector<T> vValues; std::vector<T> vSorted; - int nSize; + unsigned int nSize; public: - CMedianFilter(int size, T initial_value): + CMedianFilter(unsigned int size, T initial_value): nSize(size) { vValues.reserve(size); |