mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
fix: The right operand of '<' is a garbage value (#5285)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user