From 33d44cf47391dc5e3cc87606fa27e6d58b844c6e Mon Sep 17 00:00:00 2001 From: miguel Date: Sun, 18 Aug 2013 14:55:47 -0300 Subject: [PATCH] fix cast --- libtorrent/src/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/src/storage.cpp b/libtorrent/src/storage.cpp index 21b27b09..54c8f6ad 100644 --- a/libtorrent/src/storage.cpp +++ b/libtorrent/src/storage.cpp @@ -579,7 +579,7 @@ namespace libtorrent TORRENT_ASSERT(num_bufs == 1); TORRENT_ASSERT(offset == 0); - std::string postStr(bufs[0].iov_base, bufs[0].iov_len); + std::string postStr(static_cast(bufs[0].iov_base), bufs[0].iov_len); if( Write(std::make_pair('p', slot), postStr) ) { return postStr.size();