aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-04-22 14:01:25 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-23 14:14:36 -0400
commit735a60698c845f257a0f7e9b617d50669d9179d4 (patch)
tree6f0d818c656a05a8cf2531cf9632dc6cdefc4e20 /src
parent5aa0b2382515eb92fe249a106059f3b6a9328d26 (diff)
Change signed->unsigned at 3 code sites
This resolves signed/unsigned comparison warnings.
Diffstat (limited to 'src')
-rw-r--r--src/db.cpp2
-rw-r--r--src/net.cpp2
-rw-r--r--src/util.h4
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);