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:
parent
a2bece2682
commit
3e97d0b9c2
1 changed files with 1 additions and 3 deletions
|
@ -172,9 +172,7 @@ void tr_completion::removeBlock(tr_block_index_t block)
|
||||||
|
|
||||||
void tr_completion::removePiece(tr_piece_index_t piece)
|
void tr_completion::removePiece(tr_piece_index_t piece)
|
||||||
{
|
{
|
||||||
auto const [begin, end] = block_info_->blockSpanForPiece(piece);
|
for (auto [block, end] = block_info_->blockSpanForPiece(piece); block < end; ++block)
|
||||||
|
|
||||||
for (auto block = begin; block < end; ++block)
|
|
||||||
{
|
{
|
||||||
removeBlock(block);
|
removeBlock(block);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue