Merge 0b8e75d9951d7f3b422f30e97cd6cf727fdc979c into 8b6b7d878c89e81614d05edca7936de41ccdd2da

This commit is contained in:
Oliver Schönrock 2024-12-08 19:47:01 +00:00 committed by GitHub
commit 1ccfb35fb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,7 +205,7 @@ inline mmap_context memory_map(const file_handle_type file_handle, const int64_t
char* mapping_start = static_cast<char*>(::mmap( char* mapping_start = static_cast<char*>(::mmap(
0, // Don't give hint as to where to map. 0, // Don't give hint as to where to map.
length_to_map, length_to_map,
mode == access_mode::read ? PROT_READ : PROT_WRITE, mode == access_mode::read ? PROT_READ : PROT_READ | PROT_WRITE,
MAP_SHARED, MAP_SHARED,
file_handle, file_handle,
aligned_offset)); aligned_offset));