aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2012-04-22 13:51:16 -0400
committerJeff Garzik <[email protected]>2012-04-23 14:14:36 -0400
commit1d8c7a9557d596d4c7edee801a724db7a908bce5 (patch)
tree5181d28a1c69ecc7c58ba4b0b15417d6817aa949 /src/protocol.cpp
parentTest ScriptSigArgsExpected() for error, before accumulating return value (diff)
downloaddiscoin-1d8c7a9557d596d4c7edee801a724db7a908bce5.tar.xz
discoin-1d8c7a9557d596d4c7edee801a724db7a908bce5.zip
Add casts for unavoidable signed/unsigned comparisons
At these code sites, it is preferable to cast rather than change a variable's type.
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 06306cf8e..fda31966f 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -128,7 +128,7 @@ bool operator<(const CInv& a, const CInv& b)
bool CInv::IsKnownType() const
{
- return (type >= 1 && type < ARRAYLEN(ppszTypeName));
+ return (type >= 1 && type < (int)ARRAYLEN(ppszTypeName));
}
const char* CInv::GetCommand() const