diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-11-10 08:00:05 +0100 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-12-05 11:41:46 +0100 |
commit | 9de90bb749926a51aac15d5998bff3e12425675e (patch) | |
tree | c8f36dfda28f69e8f90ea8bffb668a927d031e8c /src/streams.h | |
parent | 43e8150ef69093c906c4406ce58c1fd21fee898e (diff) |
Do not shadow variables (gcc set)
Diffstat (limited to 'src/streams.h')
-rw-r--r-- | src/streams.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/streams.h b/src/streams.h index b508784238..05facad709 100644 --- a/src/streams.h +++ b/src/streams.h @@ -586,11 +586,11 @@ protected: readNow = nAvail; if (readNow == 0) return false; - size_t read = fread((void*)&vchBuf[pos], 1, readNow, src); - if (read == 0) { + size_t nBytes = fread((void*)&vchBuf[pos], 1, readNow, src); + if (nBytes == 0) { throw std::ios_base::failure(feof(src) ? "CBufferedFile::Fill: end of file" : "CBufferedFile::Fill: fread failed"); } else { - nSrcPos += read; + nSrcPos += nBytes; return true; } } |