From 3f693fde42691ba46c9e622695bde72b0ebed10c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 21 Aug 2016 20:20:46 -0400 Subject: [PATCH] fix build (#1025) fix build --- src/puff.cpp | 2 +- src/torrent_info.cpp | 2 +- test/test_gzip.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/puff.cpp b/src/puff.cpp index 7f48a5a88..778b0e7cc 100644 --- a/src/puff.cpp +++ b/src/puff.cpp @@ -84,7 +84,7 @@ #include /* for setjmp(), longjmp(), and jmp_buf */ #include /* for NULL */ -#include "puff.hpp" /* prototype for puff() */ +#include "libtorrent/puff.hpp" /* prototype for puff() */ #define local static /* for local function definitions */ diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index 3cbac33d3..7551d9f7c 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -469,7 +469,7 @@ namespace libtorrent if (p && p.list_size() > 0) { - int const preallocate = path.size() + path_length(p, ec); + size_t const preallocate = path.size() + path_length(p, ec); if (ec) return false; path.reserve(preallocate); diff --git a/test/test_gzip.cpp b/test/test_gzip.cpp index 96b9a3b0e..6526620a8 100644 --- a/test/test_gzip.cpp +++ b/test/test_gzip.cpp @@ -69,7 +69,7 @@ TORRENT_TEST(corrupt) TEST_CHECK(!ec); std::vector inflated; - inflate_gzip(&zipped[0], zipped.size(), inflated, 1000000, ec); + inflate_gzip(&zipped[0], int(zipped.size()), inflated, 1000000, ec); // we expect this to fail TEST_CHECK(ec);