summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/DynamicLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/System/Win32/DynamicLibrary.cpp')
-rw-r--r--llvm/lib/System/Win32/DynamicLibrary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Win32/DynamicLibrary.cpp b/llvm/lib/System/Win32/DynamicLibrary.cpp
index ef435f4afaf..af28f756254 100644
--- a/llvm/lib/System/Win32/DynamicLibrary.cpp
+++ b/llvm/lib/System/Win32/DynamicLibrary.cpp
@@ -111,7 +111,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
E = OpenedHandles.end(); I != E; ++I) {
FARPROC ptr = GetProcAddress((HMODULE)*I, symbolName);
if (ptr)
- return ptr;
+ return (void *) ptr;
}
return 0;
@@ -119,7 +119,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
void *DynamicLibrary::GetAddressOfSymbol(const char *symbolName) {
assert(handle != 0 && "Invalid DynamicLibrary handle");
- return GetProcAddress((HMODULE)handle, symbolName);
+ return (void *) GetProcAddress((HMODULE)handle, symbolName);
}
}
OpenPOWER on IntegriCloud