diff --git a/src/storage.cpp b/src/storage.cpp index ae4834d5e..cf0781e6a 100755 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -503,7 +503,7 @@ namespace libtorrent // subdirectories first for (std::set::reverse_iterator i = directories.rbegin() - , end(directories.end()); i != end; ++i) + , end(directories.rend()); i != end; ++i) { if (std::remove(i->c_str()) != 0 && errno != ENOENT) error = std::strerror(errno);