When trying to find the types of a method, lookup the untyped slot.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36056 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2013-02-02 15:26:13 +00:00
parent 6f84df52c2
commit 4d097f3d9b

View file

@ -1407,8 +1407,7 @@ GSObjCGetVal(NSObject *self, const char *key, SEL sel,
cls = [self class];
type_slot = objc_get_slot(cls, @selector(retain));
typed = GSSelectorFromNameAndTypes(sel_getName(sel),
type_slot->types);
typed = GSSelectorFromNameAndTypes(sel_getName(sel), NULL);
slot = objc_get_slot(cls, typed);
if (strcmp(slot->types, type_slot->types) == 0)
{