Minor fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13843 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-06-12 04:29:59 +00:00
parent 69ca1d3f93
commit 5c691dfbfe
2 changed files with 9 additions and 4 deletions

View file

@ -211,7 +211,7 @@ typedef struct obj_layout *obj;
#include <base/GSIMap.h>
static GSIMapTable_t retain_counts = 0;
static GSIMapTable_t retain_counts = {0};
#endif /* !defined(REFCNT_LOCAL) */
@ -288,7 +288,7 @@ NSDecrementExtraRefCountWasZero(id anObject)
{
return YES;
}
if (node->value.uint) == 0)
if ((node->value.uint) == 0)
{
GSIMapRemoveKey((GSIMapTable)&retain_counts, (GSIMapKey)anObject);
return YES;
@ -738,7 +738,7 @@ static BOOL double_release_check_enabled = NO;
GSSetLocaleC(""); // Set up locale from environment.
// Create the global lock
gnustep_global_lock = [[NSRecursiveLock alloc] init];
gnustep_global_lock = [NSRecursiveLock new];
// Zombie management stuff.
zombieMap = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,