1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-03 05:25:52 +00:00

fix: The right operand of '<' is a garbage value (#5285)

This commit is contained in:
Cœur 2023-03-24 01:05:11 +08:00 committed by GitHub
parent a2bece2682
commit 3e97d0b9c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,9 +172,7 @@ void tr_completion::removeBlock(tr_block_index_t block)
void tr_completion::removePiece(tr_piece_index_t piece)
{
auto const [begin, end] = block_info_->blockSpanForPiece(piece);
for (auto block = begin; block < end; ++block)
for (auto [block, end] = block_info_->blockSpanForPiece(piece); block < end; ++block)
{
removeBlock(block);
}