diff options
| author | Jeff Garzik <[email protected]> | 2012-04-15 16:52:09 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-04-15 16:52:09 -0400 |
| commit | c376ac359ec8551823b4ee14c85d85a49f2d3436 (patch) | |
| tree | 121093f97279ca969a424f3792e64c41f8a05b48 /src/protocol.cpp | |
| parent | The string class returns string::npos, when find() fails. (diff) | |
| download | discoin-c376ac359ec8551823b4ee14c85d85a49f2d3436.tar.xz discoin-c376ac359ec8551823b4ee14c85d85a49f2d3436.zip | |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 15fbf9fc0..06306cf8e 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]) |