From 48ac6f25ff53290850a0edff0285dc3e1a350ad3 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Fri, 13 Dec 2024 00:34:16 +0800 Subject: Correctly distinguish between windows and MSVC (#5851) Partially sorts https://github.com/shader-slang/slang/issues/5843 --- source/core/slang-platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/slang-platform.cpp') diff --git a/source/core/slang-platform.cpp b/source/core/slang-platform.cpp index 79b883e39..51f6b97c7 100644 --- a/source/core/slang-platform.cpp +++ b/source/core/slang-platform.cpp @@ -157,7 +157,7 @@ SLANG_COMPILE_TIME_ASSERT(E_OUTOFMEMORY == SLANG_E_OUT_OF_MEMORY); /* static */ void* SharedLibrary::findSymbolAddressByName(Handle handle, char const* name) { SLANG_ASSERT(handle); - return GetProcAddress((HMODULE)handle, name); + return reinterpret_cast(GetProcAddress((HMODULE)handle, name)); } /* static */ void SharedLibrary::appendPlatformFileName( -- cgit v1.2.3