parent
74fc0fae9d
commit
3f693fde42
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue