Replace old-style cast in Windows-only code with static_cast

This commit is contained in:
Rangi42
2025-01-16 23:41:12 -05:00
parent 727c1f5b50
commit 0ee4ba95b3

View File

@@ -64,7 +64,7 @@ static char *mapFile(int fd, std::string const &path, size_t) {
} }
CloseHandle(file); CloseHandle(file);
} }
return (char *)mappingAddr; return static_cast<char *>(mappingAddr);
} }
struct FileUnmapDeleter { struct FileUnmapDeleter {