diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-08-21 07:49:17 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@gcc.gnu.org> | 2004-08-21 07:49:17 +0000 |
commit | 8f63f56bd1784f27d4869118c9e28045c66229b5 (patch) | |
tree | 56c4ab9651a5cf96b5efbf2224a42062b3d3a32d /boehm-gc/misc.c | |
parent | 828a4fe4cc7aeea47ec46e2fd3f1e24311e82e7b (diff) | |
download | gcc-8f63f56bd1784f27d4869118c9e28045c66229b5.zip gcc-8f63f56bd1784f27d4869118c9e28045c66229b5.tar.gz gcc-8f63f56bd1784f27d4869118c9e28045c66229b5.tar.bz2 |
misc.c (GC_init): Replace lhs cast with rhs cast.
From-SVN: r86356
Diffstat (limited to 'boehm-gc/misc.c')
-rw-r--r-- | boehm-gc/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c index 5b10fee..2b69a00 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 |