Add casts for unavoidable signed/unsigned comparisons

At these code sites, it is preferable to cast rather than change
a variable's type.
This commit is contained in:
Jeff Garzik
2012-04-22 13:51:16 -04:00
committed by Jeff Garzik
parent c0a0a93d02
commit 1d8c7a9557
8 changed files with 21 additions and 19 deletions

View File

@@ -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