fixed Wrange-loop-analysis warning with Apple clang-800.0.42.1 (#1440)

fixed Wrange-loop-analysis warning with Apple clang-800.0.42.1
This commit is contained in:
Alden Torres 2016-12-23 06:07:37 -05:00 committed by Arvid Norberg
parent 3f612d7e99
commit 71b5d9fb85
1 changed files with 1 additions and 1 deletions

View File

@ -1810,7 +1810,7 @@ namespace libtorrent
have_pieces.push_back(p.index);
}
for (auto const i : have_pieces)
for (auto i : have_pieces)
{
picker().piece_passed(i);
TORRENT_ASSERT(picker().have_piece(i));