From b1b3f0e3e86e98e06ea70962ffd86c4a84eb2f8f Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Fri, 2 Jun 2017 00:42:03 -0400 Subject: [PATCH] one more fix related to typed_span conversion (#2050) --- include/libtorrent/aux_/storage_utils.hpp | 3 ++- src/storage_utils.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/aux_/storage_utils.hpp b/include/libtorrent/aux_/storage_utils.hpp index e84a16097..7827bbb0e 100644 --- a/include/libtorrent/aux_/storage_utils.hpp +++ b/include/libtorrent/aux_/storage_utils.hpp @@ -37,6 +37,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/config.hpp" #include "libtorrent/span.hpp" +#include "libtorrent/aux_/typed_span.hpp" #include "libtorrent/units.hpp" #include "libtorrent/storage_defs.hpp" // for status_t @@ -56,7 +57,7 @@ namespace libtorrent { TORRENT_EXTRA_EXPORT int copy_bufs(span bufs , int bytes, span target); - TORRENT_EXTRA_EXPORT span advance_bufs(span bufs, int bytes); + TORRENT_EXTRA_EXPORT typed_span advance_bufs(typed_span bufs, int bytes); // this is a read or write operation so that readwritev() knows // what to do when it's actually touching the file diff --git a/src/storage_utils.cpp b/src/storage_utils.cpp index be0f69ead..ac74d24bf 100644 --- a/src/storage_utils.cpp +++ b/src/storage_utils.cpp @@ -63,7 +63,7 @@ namespace libtorrent { namespace aux { return ret; } - span advance_bufs(span bufs, int const bytes) + typed_span advance_bufs(typed_span bufs, int const bytes) { TORRENT_ASSERT(bytes >= 0); std::size_t size = 0;