mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-11-27 14:10:33 +00:00
Fixed lookup of superclass when superclass is nil.
This commit is contained in:
parent
ce5b0e9f83
commit
289d412dac
@ -558,6 +558,7 @@ class_get_super_class(Class _class)
|
||||
* which might have ivars or methods added after this call (so we
|
||||
* mustn't resolve this class now).
|
||||
*/
|
||||
if (NULL == _class->super_class) { return NULL; }
|
||||
return (Class)objc_get_class((const char*)_class->super_class);
|
||||
}
|
||||
return _class->super_class;
|
||||
|
Loading…
Reference in New Issue
Block a user