Merge branch 'blender-v4.0-release'

This commit is contained in:
Campbell Barton
2023-10-10 15:33:47 +11:00

View File

@@ -132,7 +132,10 @@ static void sigbus_handler_remove(BLI_mmap_file *file)
BLI_mmap_file *BLI_mmap_open(int fd)
{
void *memory, *handle = NULL;
size_t length = BLI_lseek(fd, 0, SEEK_END);
const size_t length = BLI_lseek(fd, 0, SEEK_END);
if (UNLIKELY(length == (size_t)-1)) {
return NULL;
}
#ifndef WIN32
/* Ensure that the SIGBUS handler is configured. */