From d0dd29fcf87b51280dd5c2685063ea42cf4fc115 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sat, 15 Sep 2007 14:03:32 +0200 Subject: Make the code copied from PyObjC compilable stand-alone. darcs-hash:6a1f1865b6259fc5a7551ffb10494f914359ecc6 --- Objective-C/libobjcl.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objective-C/libobjcl.m') 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 -- cgit v1.2.3