diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-04-17 10:55:56 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-04-17 10:55:56 -0700 |
commit | b97d54355e8239273b50c54dbedfde16ed82fd73 (patch) | |
tree | 7c605817ec5a41b86b5656916eaa014e13fb247f /src/serialize.h | |
parent | e873dc654c81810272e71af8b52a3836d2c8bf0a (diff) | |
parent | 9fb89c26f3a3991d197b207f44ef79b1d16c26fc (diff) |
Merge pull request #1106 from jgarzik/sign-compare
Fix many sign-comparison warnings found in bitcoin codebase
Diffstat (limited to 'src/serialize.h')
-rw-r--r-- | src/serialize.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialize.h b/src/serialize.h index d24624ebee..89f498e7a1 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -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"); |