Commit 8f63f56b by Danny Smith Committed by Danny Smith

misc.c (GC_init): Replace lhs cast with rhs cast.

From-SVN: r86356
parent 828a4fe4
2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
misc.c (GC_init): Replace lhs cast with rhs cast.
2004-08-16 Bryce McKinlay <mckinlay@redhat.com>
* specific.c: Check GC_LINUX_THREADS before including
......
......@@ -479,7 +479,8 @@ void GC_init()
BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL;
HMODULE hK32 = GetModuleHandle("kernel32.dll");
if (hK32)
(FARPROC) pfn = GetProcAddress(hK32,
pfn = (BOOL (WINAPI *) (LPCRITICAL_SECTION, DWORD))
GetProcAddress (hK32,
"InitializeCriticalSectionAndSpinCount");
if (pfn)
pfn(&GC_allocate_ml, 4000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment