From a75c2ba47e6313fb027ef12b8757ab5af4a035b6 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Fri, 23 Sep 2016 10:45:35 -0400 Subject: [PATCH] fix examples/make_torrent.cpp compilation (#1140) fix examples/make_torrent.cpp compilation --- examples/make_torrent.cpp | 2 +- include/libtorrent/announce_entry.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/make_torrent.cpp b/examples/make_torrent.cpp index 041ec63be..9d711dbd8 100644 --- a/examples/make_torrent.cpp +++ b/examples/make_torrent.cpp @@ -60,7 +60,7 @@ std::vector load_file(std::string const& filename) in.exceptions(std::ifstream::failbit); in.open(filename.c_str(), std::ios_base::in | std::ios_base::binary); in.seekg(0, std::ios_base::end); - size_t const size = in.tellg(); + size_t const size = size_t(in.tellg()); in.seekg(0, std::ios_base::beg); ret.resize(size); in.read(ret.data(), ret.size()); diff --git a/include/libtorrent/announce_entry.hpp b/include/libtorrent/announce_entry.hpp index 03fe75e51..a2d6be3ed 100644 --- a/include/libtorrent/announce_entry.hpp +++ b/include/libtorrent/announce_entry.hpp @@ -99,6 +99,7 @@ namespace libtorrent // current downloaders int scrape_incomplete = -1; int scrape_complete = -1; + int scrape_downloaded = -1; // the tier this tracker belongs to