aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2012-04-15 16:52:09 -0400
committerLuke Dashjr <luke-jr+git@utopios.org>2012-04-17 14:59:32 -0400
commit0c3aa881e2ac7a6142fcfcbb9b7d2824532fe522 (patch)
treec3205a1993fa5e2bc5c2b82e692cb36c8bc84d71 /src/protocol.cpp
parent3374c3ef094b328e6c6957fdaf5a9abff0c53a33 (diff)
downloadbitcoin-0c3aa881e2ac7a6142fcfcbb9b7d2824532fe522.tar.xz
Fix loop index var types, fixing many minor sign comparison warnings
foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 15fbf9fc0d..06306cf8e1 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -107,7 +107,7 @@ CInv::CInv(int typeIn, const uint256& hashIn)
CInv::CInv(const std::string& strType, const uint256& hashIn)
{
- int i;
+ unsigned int i;
for (i = 1; i < ARRAYLEN(ppszTypeName); i++)
{
if (strType == ppszTypeName[i])