mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-05 05:02:06 +02:00
Merge pull request #1106 from jgarzik/sign-compare
Fix many sign-comparison warnings found in bitcoin codebase
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user