diff --git a/test/test_torrent.cpp b/test/test_torrent.cpp index 6ee156761..d43a81360 100644 --- a/test/test_torrent.cpp +++ b/test/test_torrent.cpp @@ -465,7 +465,7 @@ TORRENT_TEST(queue) std::vector buf; bencode(std::back_inserter(buf), t.generate()); - std::shared_ptr ti = std::make_shared(&buf[0], buf.size()); + std::shared_ptr ti = std::make_shared(&buf[0], int(buf.size())); add_torrent_params p; p.ti = ti; p.save_path = ".";