Fix isa access in NSMethodSignature test.

This commit is contained in:
Frederik Seiffert 2021-07-02 15:13:52 +02:00 committed by Frederik Seiffert
parent 1b826663f5
commit 4a0e308383

View file

@ -181,7 +181,7 @@ typedef struct _MySmallStruct MySmallStruct;
-(const char *)runtimeSignatureForSelector:(SEL)selector
{
GSMethod meth = GSGetMethod(isa, selector, YES, YES);
GSMethod meth = GSGetMethod(object_getClass(self), selector, YES, YES);
return method_getTypeEncoding (meth);
}