From a05231f8782178d5a074de16aaba2ae0b118ccd4 Mon Sep 17 00:00:00 2001 From: Takoroka <137927095+Takoroka@users.noreply.github.com> Date: Tue, 27 Oct 2026 11:46:04 -0400 Subject: Fix build with MSVC 14.51 (VS 2026) - sparse_large_vector: ULONG_PTR -> u64 needs static_cast, not reinterpret_cast - zbic_compression: silence C4505/C5245 for the amalgamated zstd.c, which is compiled as project code and hits /we4505 - launch_params: explicit int -> bool (C4800 is an error here) --- src/common/sparse_large_vector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/sparse_large_vector.cpp') diff --git a/src/common/sparse_large_vector.cpp b/src/common/sparse_large_vector.cpp index eee8ff6d18..b96340999d 100644 --- a/src/common/sparse_large_vector.cpp +++ b/src/common/sparse_large_vector.cpp @@ -26,7 +26,7 @@ static std::mutex vector_regions_mutex {}; // Workaround for handling non-commited memory accessed by Dynarmic; usually result of an error static LONG WINAPI FakePageFaultHandler(PEXCEPTION_POINTERS info) { DWORD code = info->ExceptionRecord->ExceptionCode; - u64 exception_addr = reinterpret_cast(info->ExceptionRecord->ExceptionInformation[1]); + u64 exception_addr = static_cast(info->ExceptionRecord->ExceptionInformation[1]); if (code != EXCEPTION_ACCESS_VIOLATION || info->ExceptionRecord->ExceptionInformation[0] == 1) { // Not our problem -- cgit v1.2.3