diff --git a/test/setup_transfer.cpp b/test/setup_transfer.cpp index e1d7c7838..cdfd77f41 100644 --- a/test/setup_transfer.cpp +++ b/test/setup_transfer.cpp @@ -1216,7 +1216,7 @@ void web_server_thread(int* port, bool ssl, bool chunked) while (!p.finished()) { - TORRENT_ASSERT(len < int(sizeof(buf))); + TORRENT_ASSERT(len <= int(sizeof(buf))); size_t received = 0; bool done = false; bool timed_out = false; diff --git a/test/web_seed_suite.cpp b/test/web_seed_suite.cpp index e09d343e4..7730207b9 100644 --- a/test/web_seed_suite.cpp +++ b/test/web_seed_suite.cpp @@ -40,8 +40,11 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/create_torrent.hpp" #include "libtorrent/thread.hpp" #include "libtorrent/alert_types.hpp" +#include "libtorrent/file.hpp" #include +#include "setup_transfer.hpp" + #include using namespace libtorrent;