summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/libobjcl.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index 646dccd..8489891 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -382,7 +382,7 @@ objcl_object_is_class (id obj)
{
TRACE (@"is-class %p", obj);
#ifdef __NEXT_RUNTIME__
- return [obj class] == obj;
+ return class_isMetaClass (object_getClass (obj));
#else
/* return CLS_ISCLASS (obj); */
return object_is_class (obj);
@@ -845,7 +845,6 @@ void
objcl_finalise_class (Class class)
{
#ifdef __NEXT_RUNTIME__
- /* FIXME: Should we do this if class is a metaclass? */
if (!objcl_object_is_meta_class (class))
objc_registerClassPair (class);
#else