fix examples/make_torrent.cpp compilation (#1140)
fix examples/make_torrent.cpp compilation
This commit is contained in:
parent
1d677f24d2
commit
a75c2ba47e
@ -60,7 +60,7 @@ std::vector<char> 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());
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user