Don't access isa directly.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31560 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2010-10-25 14:40:09 +00:00
parent ef81066edc
commit 704532b50c

View file

@ -134,7 +134,7 @@ static IMP gs_objc_msg_forward2 (id receiver, SEL sel)
* NB. object_getClass() and class_respondsToSelector() should both
* return NULL when given NULL arguments, so they are safe to use.
*/
c = object_getClass(receiver);
c = receiver->isa;
if (class_respondsToSelector(c, @selector(methodSignatureForSelector:)))
{
sig = [receiver methodSignatureForSelector: sel];
@ -243,7 +243,7 @@ BOOL class_respondsToSelector(Class cls, SEL sel);
*/
static id gs_objc_proxy_lookup(id receiver, SEL op)
{
id cls = object_getClass(receiver);
id cls = receiver->isa;
BOOL resolved = NO;
/* Let the class try to add a method for this thing. */