([NSDictionary -allKeysForObject:]): Ask SELF for objectForKey:, not K.

(Reported by Robert Quillen <rquillen@csugrad.cs.vt.edu>).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1335 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-04-08 17:19:16 +00:00
parent dfdb72ccb1
commit 6d43bc6533

View file

@ -229,9 +229,9 @@ static Class NSMutableDictionary_concrete_class;
int c = 0;
while ((k = [e nextObject]))
if ([anObject isEqual:[k objectForKey:k]])
if ([anObject isEqual: [self objectForKey: k]])
a[c++] = k;
return [[[NSArray alloc] initWithObjects:a count:c]
return [[[NSArray alloc] initWithObjects: a count: c]
autorelease];
}