Merge pull request #47 from MambaWong/master

Fix memory mapped data offset
This commit is contained in:
mandreyel 2019-05-20 12:57:29 +01:00 committed by GitHub
commit eb6f4068d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
ctx.data = mapping_start + offset - aligned_offset;
ctx.length = length;
ctx.mapped_length = length_to_map;
#ifdef _WIN32