diff --git a/include/libtorrent/bencode.hpp b/include/libtorrent/bencode.hpp index f1bd1233f..c0a4db76f 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 += int(e.preformatted().size()); break; case entry::undefined_t: // trying to encode a structure with uninitialized values!