From 49e2a4ae2a38c26eee0aa4256631b7106c5c0772 Mon Sep 17 00:00:00 2001 From: upstream svn Date: Sun, 12 Oct 2014 14:02:43 +0000 Subject: [PATCH] Reduced variable scope --- .svn-revision | 2 +- src/PartFile.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.svn-revision b/.svn-revision index cbb4c05a..705f0ddc 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -10849 +10850 diff --git a/src/PartFile.cpp b/src/PartFile.cpp index 3d6a9e3c..7f302a5a 100644 --- a/src/PartFile.cpp +++ b/src/PartFile.cpp @@ -1149,8 +1149,6 @@ void CPartFile::PartFileHashFinished(CKnownFile* result) // Very nice feature, if a file is completed but .part.met don't believe it, // update it. - uint64 partStart = i * PARTSIZE; - uint64 partEnd = partStart + GetPartSize(i) - 1; if (!( i < result->GetHashCount() && (result->GetPartHash(i) == GetPartHash(i)))){ if (IsComplete(i)) { CMD4Hash wronghash; @@ -1178,6 +1176,8 @@ void CPartFile::PartFileHashFinished(CKnownFile* result) % GetFileName() ); FillGap(i); + uint64 partStart = i * PARTSIZE; + uint64 partEnd = partStart + GetPartSize(i) - 1; RemoveBlockFromList(partStart, partEnd); } } -- 2.11.4.GIT