Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/coding
diff options
context:
space:
mode:
authorKirill Zhdanovich <kzhdanovich@gmail.com>2013-01-21 19:55:02 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:49:01 +0300
commit52d4124b3c7a4647c5abbe066de0f1832df93c02 (patch)
tree23b01dcd49e9b3277024e683bfded15e7e47e1f7 /coding
parent5d0bde083b0ce93fc908fec0115af724de369a58 (diff)
compileFix
Diffstat (limited to 'coding')
-rw-r--r--coding/internal/file_data.cpp4
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;