diff options
| author | Jeff Garzik <[email protected]> | 2012-04-15 16:59:09 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-04-15 16:59:09 -0400 |
| commit | c3fad8350b5d2596be62399e1ffefc808f328083 (patch) | |
| tree | f6b296dae1fad816b2015d5d9af4a5c5f333e417 /src | |
| parent | Fix sign-compare warnings: netbase's Lookup* max-solutions may be unsigned (diff) | |
| download | discoin-c3fad8350b5d2596be62399e1ffefc808f328083.tar.xz discoin-c3fad8350b5d2596be62399e1ffefc808f328083.zip | |
serialize.h: CAutoFile's read and write may take size_t nSize
Diffstat (limited to 'src')
| -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 2d4aaba6a..5fb3aa688 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -1190,7 +1190,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"); @@ -1199,7 +1199,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"); |