diff options
author | Kirill Zhdanovich <kzhdanovich@gmail.com> | 2013-01-21 19:55:02 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:49:01 +0300 |
commit | 52d4124b3c7a4647c5abbe066de0f1832df93c02 (patch) | |
tree | 23b01dcd49e9b3277024e683bfded15e7e47e1f7 /coding | |
parent | 5d0bde083b0ce93fc908fec0115af724de369a58 (diff) |
compileFix
Diffstat (limited to 'coding')
-rw-r--r-- | coding/internal/file_data.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coding/internal/file_data.cpp b/coding/internal/file_data.cpp index d437376599..4ebbf3eecc 100644 --- a/coding/internal/file_data.cpp +++ b/coding/internal/file_data.cpp @@ -282,8 +282,8 @@ bool IsEqualFiles(string const & firstFile, string const & secondFile) size_t toRead = fileSize - currSize; if (toRead > bufSize) toRead = bufSize; - first.Read(step * bufSize, &buf1[0], readingLength); - second.Read(step * bufSize, &buf2[0], readingLength); + first.Read(currSize, &buf1[0], toRead); + second.Read(currSize, &buf2[0], toRead); if (buf1 != buf2) return false; currSize += toRead; |