summaryrefslogtreecommitdiff
path: root/Objective-C/libobjcl.m
diff options
context:
space:
mode:
Diffstat (limited to 'Objective-C/libobjcl.m')
-rw-r--r--Objective-C/libobjcl.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index aff3c4c..bd1e410 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -274,7 +274,7 @@ objcl_invoke_with_types (void *receiver,
*exception = NULL;
#ifdef __NEXT_RUNTIME__
- method = class_getInstanceMethod ([obj class], method_selector)->method_imp;
+ method = class_getInstanceMethod ([((id) receiver) class], method_selector)->method_imp;
#else
method = objc_msg_lookup (receiver, method_selector);
#endif