From 71b5d9fb85877852f4714669b87dfd95563a4787 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Fri, 23 Dec 2016 06:07:37 -0500 Subject: [PATCH] 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 --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index fa0092ea2..dded666f0 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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));