summaryrefslogtreecommitdiff
path: root/Objective-C/libobjcl.m
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2007-09-15 14:03:32 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2007-09-15 14:03:32 +0200
commitd0dd29fcf87b51280dd5c2685063ea42cf4fc115 (patch)
tree6492eb0477db2e07978554e4b865f9a812de252b /Objective-C/libobjcl.m
parent63a0b732f2f8f7acc054ab4a9d2eb3fa121b1a95 (diff)
Make the code copied from PyObjC compilable stand-alone.
darcs-hash:6a1f1865b6259fc5a7551ffb10494f914359ecc6
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