summaryrefslogtreecommitdiff
path: root/lib/Support/Windows/DynamicLibrary.inc
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-07-09 08:41:20 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-07-09 08:41:20 +0000
commit71c10666cc27a2422d5be9ec848c023780c9a6c5 (patch)
treec8986c1aee29cc89ca31b847f95b0d9ea99f83df /lib/Support/Windows/DynamicLibrary.inc
parent6bb5fe3a0d7cf92cd5e77382f1c737a919ab7669 (diff)
downloadllvm-71c10666cc27a2422d5be9ec848c023780c9a6c5.tar.gz
llvm-71c10666cc27a2422d5be9ec848c023780c9a6c5.tar.bz2
llvm-71c10666cc27a2422d5be9ec848c023780c9a6c5.tar.xz
Windows/DynamicLibrary.inc: Fix trivial warnings. Thanks to John Myers!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/DynamicLibrary.inc')
-rw-r--r--lib/Support/Windows/DynamicLibrary.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Windows/DynamicLibrary.inc b/lib/Support/Windows/DynamicLibrary.inc
index 4227844ae5..fc5f5809cb 100644
--- a/lib/Support/Windows/DynamicLibrary.inc
+++ b/lib/Support/Windows/DynamicLibrary.inc
@@ -115,7 +115,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
E = OpenedHandles.end(); I != E; ++I) {
FARPROC ptr = GetProcAddress((HMODULE)*I, symbolName);
if (ptr) {
- return (void *) ptr;
+ return (void *)(intptr_t)ptr;
}
}