From: dannysmith 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://granicus.if.org/sourcecode?a=commitdiff_plain;h=1864d91603e88a5dd3fdbf38641a3827b48a9195;p=gc misc.c (GC_init): Replace lhs cast with rhs cast. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86356 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/ChangeLog b/ChangeLog index 41276473..70de84e8 100644 --- a/ChangeLog +++ b/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/misc.c b/misc.c index 5b10feeb..2b69a000 100644 --- a/misc.c +++ b/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