From 88e0263b075b832e78b9a36df58575a96ffe5e7d Mon Sep 17 00:00:00 2001 From: mandreyel Date: Wed, 13 Mar 2019 00:06:43 +0100 Subject: [PATCH] Fix memory mapped data offset --- include/mio/detail/mmap.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mio/detail/mmap.ipp b/include/mio/detail/mmap.ipp index 361db30..2e73958 100644 --- a/include/mio/detail/mmap.ipp +++ b/include/mio/detail/mmap.ipp @@ -201,7 +201,7 @@ inline mmap_context memory_map(const file_handle_type file_handle, const int64_t } #endif mmap_context ctx; - ctx.data = mapping_start + offset - aligned_offset; + ctx.data = mapping_start + offset; ctx.length = length; ctx.mapped_length = length_to_map; #ifdef _WIN32