Fix memory mapped data offset

This commit is contained in:
mandreyel 2019-03-13 00:06:43 +01:00
parent 514837b21e
commit 88e0263b07

View File

@ -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