Merge pull request #1106 from jgarzik/sign-compare

Fix many sign-comparison warnings found in bitcoin codebase
This commit is contained in:
Gavin Andresen
2012-04-17 10:55:56 -07:00
17 changed files with 68 additions and 68 deletions

View File

@ -1138,7 +1138,7 @@ public:
void ReadVersion() { *this >> nVersion; }
void WriteVersion() { *this << nVersion; }
CAutoFile& read(char* pch, int nSize)
CAutoFile& read(char* pch, size_t nSize)
{
if (!file)
throw std::ios_base::failure("CAutoFile::read : file handle is NULL");
@ -1147,7 +1147,7 @@ public:
return (*this);
}
CAutoFile& write(const char* pch, int nSize)
CAutoFile& write(const char* pch, size_t nSize)
{
if (!file)
throw std::ios_base::failure("CAutoFile::write : file handle is NULL");