Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/llfio/v2.0/detail/impl/fast_random_file_handle.ipp')
-rw-r--r--include/llfio/v2.0/detail/impl/fast_random_file_handle.ipp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llfio/v2.0/detail/impl/fast_random_file_handle.ipp b/include/llfio/v2.0/detail/impl/fast_random_file_handle.ipp
index 4429592e..200e4df6 100644
--- a/include/llfio/v2.0/detail/impl/fast_random_file_handle.ipp
+++ b/include/llfio/v2.0/detail/impl/fast_random_file_handle.ipp
@@ -123,10 +123,10 @@ fast_random_file_handle::io_result<fast_random_file_handle::buffers_type> fast_r
}
if(p == &blk)
{
- memcpy(buffer.data() + i, ((const char *) p) + thisblockoffset, thisblocklen);
+ memcpy(buffer.data() + i, ((const char *) p) + thisblockoffset, (size_type) thisblocklen);
}
reqs.offset += thisblocklen;
- i += thisblocklen;
+ i += (size_type) thisblocklen;
togo -= thisblocklen;
if(togo == 0)
{