Windows/DynamicLibrary.inc: Fix trivial warnings. Thanks to John Myers!

llvm-svn: 134812
This commit is contained in:
NAKAMURA Takumi 2011-07-09 08:41:20 +00:00
parent 7b15d1885f
commit ee24d32071
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -2,7 +2,7 @@
#ifdef HAVE__ALLOCA
EXPLICIT_SYMBOL(_alloca)
EXPLICIT_SYMBOL2(alloca, _alloca);
EXPLICIT_SYMBOL2(alloca, _alloca)
#endif
#ifdef HAVE___ALLOCA
EXPLICIT_SYMBOL(__alloca)
@ -62,5 +62,5 @@
/* msvcrt */
#if defined(_MSC_VER)
EXPLICIT_SYMBOL2(alloca, _alloca_probe);
EXPLICIT_SYMBOL2(alloca, _alloca_probe)
#endif