diff --git a/ChangeLog b/ChangeLog index 44ae7d33c..a83f54706 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ * configure.ac: Check for new GC_allow_register_threads() function. * Source/NSThread.m: Attempt to fix thread registration for GC. * Source/NSObject.m: Initialise finalize on mingw as well as unix. + * Source/NSZone.m: Remove unnecessary casts. 2009-02-09 Matt Rice diff --git a/Source/NSThread.m b/Source/NSThread.m index 59a7ca508..b533976fd 100644 --- a/Source/NSThread.m +++ b/Source/NSThread.m @@ -756,7 +756,7 @@ gnustep_base_thread_callback(void) { int result; - result = GC_register_my_thread(base); + result = GC_register_my_thread(&base); if (result != GC_SUCCESS && result != GC_DUPLICATE) { fprintf(stderr, "Argh ... no thread support in garbage collection library\n"); diff --git a/Source/NSZone.m b/Source/NSZone.m index 53971a8c1..a969ddfa9 100644 --- a/Source/NSZone.m +++ b/Source/NSZone.m @@ -1918,10 +1918,10 @@ GSAssignZeroingWeakPointer(void **destination, void *source) } if (*destination != 0) { - GC_unregister_disappearing_link((GC_PTR*)destination); + GC_unregister_disappearing_link(destination); } *destination = source; - GC_general_register_disappearing_link((GC_PTR*)destination, source); + GC_general_register_disappearing_link(destination, source); return YES; }