1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-13 05:41:17 +00:00

Merge pull request #9482 from proninyaroslav/patch-1

Fix typo in variable name
This commit is contained in:
Vladimir Golovnev 2018-09-13 19:45:14 +03:00 committed by GitHub
commit fe9fb03e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,9 +339,9 @@ TorrentInfo::PieceRange TorrentInfo::filePieces(int fileIndex) const
const libt::file_storage &files = nativeInfo()->files();
const auto fileSize = files.file_size(fileIndex);
const auto firstOffset = files.file_offset(fileIndex);
return makeInterval(static_cast<int>(firstOffset / pieceLength()),
static_cast<int>((firstOffset + fileSize - 1) / pieceLength()));
const auto fileOffset = files.file_offset(fileIndex);
return makeInterval(static_cast<int>(fileOffset / pieceLength()),
static_cast<int>((fileOffset + fileSize - 1) / pieceLength()));
}
void TorrentInfo::renameFile(const int index, const QString &newPath)