From 80dee106f132ea82250f7f8884c8c77a521a39a3 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 3 Feb 1999 13:23:23 +0000 Subject: [PATCH] bugfix retaining keys git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3643 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/FastMap.x | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29618fe41..ea774f1cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 3 12:45:00 1999 Richard Frith-Macdonald + + * Source/FastMap.x: Fix to assign values returned by RETAIN macros + as suggested by mguesdon@sbuilders.com + Tue Feb 2 15:35:00 1999 Richard Frith-Macdonald * Source/NSZone.m: nrecycle() bugfix - was persisting after memory diff --git a/Source/FastMap.x b/Source/FastMap.x index e2b2a88e1..b896ccf47 100644 --- a/Source/FastMap.x +++ b/Source/FastMap.x @@ -529,8 +529,8 @@ FastMapAddPair(FastMapTable map, FastMapItem key, FastMapItem value) { FastMapNode node; - FAST_MAP_RETAIN_KEY(key); - FAST_MAP_RETAIN_VAL(value); + key = FAST_MAP_RETAIN_KEY(key); + value = FAST_MAP_RETAIN_VAL(value); node = FastMapNewNode(map, key, value); if (node != 0) @@ -561,7 +561,7 @@ FastMapAddKey(FastMapTable map, FastMapItem key) { FastMapNode node; - FAST_MAP_RETAIN_KEY(key); + key = FAST_MAP_RETAIN_KEY(key); node = FastMapNewNode(map, key); if (node != 0)