fix build
This commit is contained in:
Arvid Norberg 2016-08-21 20:20:46 -04:00 committed by GitHub
parent 74fc0fae9d
commit 3f693fde42
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@
#include <setjmp.h> /* for setjmp(), longjmp(), and jmp_buf */
#include <string.h> /* for NULL */
#include "puff.hpp" /* prototype for puff() */
#include "libtorrent/puff.hpp" /* prototype for puff() */
#define local static /* for local function definitions */

View File

@ -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);

View File

@ -69,7 +69,7 @@ TORRENT_TEST(corrupt)
TEST_CHECK(!ec);
std::vector<char> 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);