From 2e62a9a76506a89162614db786c15507f033d2c0 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 2 Aug 2012 11:38:58 +0000 Subject: [PATCH] [Sanitizer] fix windows build llvm-svn: 161170 --- compiler-rt/lib/interception/interception_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/interception/interception_win.cc b/compiler-rt/lib/interception/interception_win.cc index 8e35a3b9e6b1..abbab24970cd 100644 --- a/compiler-rt/lib/interception/interception_win.cc +++ b/compiler-rt/lib/interception/interception_win.cc @@ -28,7 +28,7 @@ bool GetRealFunctionAddress(const char *func_name, uptr *func_addr) { }; *func_addr = 0; for (size_t i = 0; *func_addr == 0 && DLLS[i]; ++i) { - *func_addr = GetProcAddress(GetModuleHandleA(DLLS[i]), func_name); + *func_addr = (uptr)GetProcAddress(GetModuleHandleA(DLLS[i]), func_name); } return (*func_addr != 0); }