diff --git a/include/libtorrent/utp_stream.hpp b/include/libtorrent/utp_stream.hpp index 3bcfeba82..5c79a25b1 100644 --- a/include/libtorrent/utp_stream.hpp +++ b/include/libtorrent/utp_stream.hpp @@ -328,7 +328,7 @@ public: #endif } std::size_t ret = read_some(true); - TORRENT_ASSERT(int(ret) <= buf_size); + TORRENT_ASSERT(ret <= buf_size); TORRENT_ASSERT(ret > 0); return ret; }