summaryrefslogtreecommitdiff
path: root/boehm-gc/misc.c
diff options
context:
space:
mode:
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-21 07:49:17 +0000
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-21 07:49:17 +0000
commitcdfdca4009ce9e2f18e2aabcf49507f9d15fc57a (patch)
tree56c4ab9651a5cf96b5efbf2224a42062b3d3a32d /boehm-gc/misc.c
parent329f67aeceef041840cf7d3c3c5a715ccdae6e81 (diff)
downloadgcc-cdfdca4009ce9e2f18e2aabcf49507f9d15fc57a.tar.gz
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
Diffstat (limited to 'boehm-gc/misc.c')
-rw-r--r--boehm-gc/misc.c5
1 files changed, 3 insertions, 2 deletions
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