summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2007-09-21 16:17:57 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2007-09-21 16:17:57 +0200
commit4bcd7e54d49e128f4a8e713faa2a25f4797e0120 (patch)
tree8d464a45de3ed8f32d7d19ecefc38ac000d82946 /Objective-C
parent17ee7b8790aff3efe19551796efec889e9d0b51d (diff)
Make the test suite work on Mac OS X.
darcs-hash:d91ddd8e48860553eae62249043f13dd973a40c2
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/libobjcl.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index 849eedf..205a998 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -65,7 +65,10 @@ objcl_invoke_with_types (int argc,
NS_DURING
{
#ifdef __NEXT_RUNTIME__
- method = class_getInstanceMethod ([receiver class], method_selector)->method_imp;
+ if (objcl_object_is_class (receiver))
+ method = class_getClassMethod (receiver, method_selector)->method_imp;
+ else
+ method = class_getInstanceMethod ([receiver class], method_selector)->method_imp;
#else
method = objc_msg_lookup (receiver, method_selector);
/* Alternatively: