From: Danny Smith Date: Sat, 21 Aug 2004 07:49:17 +0000 (+0000) Subject: misc.c (GC_init): Replace lhs cast with rhs cast. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f63f56bd1784f27d4869118c9e28045c66229b5;p=gcc.git misc.c (GC_init): Replace lhs cast with rhs cast. From-SVN: r86356 --- diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 41276473a8b..70de84e849a 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,7 @@ +2004-08-21 Danny Smith + + misc.c (GC_init): Replace lhs cast with rhs cast. + 2004-08-16 Bryce McKinlay * specific.c: Check GC_LINUX_THREADS before including diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c index 5b10feeb961..2b69a00055a 100644 --- a/boehm-gc/misc.c +++ b/boehm-gc/misc.c @@ -479,8 +479,9 @@ void GC_init() BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL; HMODULE hK32 = GetModuleHandle("kernel32.dll"); if (hK32) - (FARPROC) pfn = GetProcAddress(hK32, - "InitializeCriticalSectionAndSpinCount"); + pfn = (BOOL (WINAPI *) (LPCRITICAL_SECTION, DWORD)) + GetProcAddress (hK32, + "InitializeCriticalSectionAndSpinCount"); if (pfn) pfn(&GC_allocate_ml, 4000); else