From afb6e09fe80d97a54a10c19dc42b2d39f048a9bf Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 10 Feb 2009 14:35:12 +0000 Subject: [PATCH] fix bugs #25545 and #25546 git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27832 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 1 + Source/NSThread.m | 2 +- Source/NSZone.m | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) 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; }