mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 08:46:51 +08:00
Fix memory mapped data offset
This commit is contained in:
parent
514837b21e
commit
88e0263b07
@ -201,7 +201,7 @@ inline mmap_context memory_map(const file_handle_type file_handle, const int64_t
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
mmap_context ctx;
|
mmap_context ctx;
|
||||||
ctx.data = mapping_start + offset - aligned_offset;
|
ctx.data = mapping_start + offset;
|
||||||
ctx.length = length;
|
ctx.length = length;
|
||||||
ctx.mapped_length = length_to_map;
|
ctx.mapped_length = length_to_map;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user