diff --git a/include/libtorrent/bencode.hpp b/include/libtorrent/bencode.hpp index 27c4852df..15b0915ce 100644 --- a/include/libtorrent/bencode.hpp +++ b/include/libtorrent/bencode.hpp @@ -212,7 +212,7 @@ namespace libtorrent break; case entry::preformatted_t: std::copy(e.preformatted().begin(), e.preformatted().end(), out); - ret += e.preformatted().size(); + ret += static_cast(e.preformatted().size()); break; case entry::undefined_t: