[boehm-gc] Fix invalid assignment.

Danny Smith danny_smith_0000@yahoo.co.nz
Mon Aug 23 21:19:00 GMT 2004


Building trunk  boehm-gc on mingw32:

../../../gcc/boehm-gc/misc.c:483: error: invalid lvalue in assignment

breaks libgcj build.

Fixed by:

2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>

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

Index: misc.c
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/misc.c,v
retrieving revision 1.29
diff -c -3 -p -r1.29 misc.c
*** misc.c	13 Aug 2004 23:05:30 -0000	1.29
--- misc.c	21 Aug 2004 00:49:52 -0000
*************** void GC_init()
*** 479,486 ****
        BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL;
        HMODULE hK32 = GetModuleHandle("kernel32.dll");
        if (hK32)
!           (FARPROC) pfn = GetProcAddress(hK32,
! 			  "InitializeCriticalSectionAndSpinCount");
        if (pfn)
            pfn(&GC_allocate_ml, 4000);
        else
--- 479,487 ----
        BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL;
        HMODULE hK32 = GetModuleHandle("kernel32.dll");
        if (hK32)
!           pfn = (BOOL (WINAPI *) (LPCRITICAL_SECTION, DWORD))
! 		GetProcAddress (hK32,
! 			        "InitializeCriticalSectionAndSpinCount");
        if (pfn)
            pfn(&GC_allocate_ml, 4000);
        else

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com



More information about the Java-patches mailing list