summaryrefslogtreecommitdiffstats
path: root/source/core/slang-platform.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-12-13 00:34:16 +0800
committerGitHub <noreply@github.com>2024-12-13 00:34:16 +0800
commit48ac6f25ff53290850a0edff0285dc3e1a350ad3 (patch)
tree2388d19d2943980c92a4a719d73a7f1fbbb750d9 /source/core/slang-platform.cpp
parent7279c0419409dfe609b0f147df0a7ab357559e69 (diff)
Correctly distinguish between windows and MSVC (#5851)
Partially sorts https://github.com/shader-slang/slang/issues/5843
Diffstat (limited to 'source/core/slang-platform.cpp')
-rw-r--r--source/core/slang-platform.cpp2
1 files changed, 1 insertions, 1 deletions
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<void*>(GetProcAddress((HMODULE)handle, name));
}
/* static */ void SharedLibrary::appendPlatformFileName(