From aad22cb09211e2d231bbd9d22b75304b6b539b7e Mon Sep 17 00:00:00 2001 From: theraven Date: Thu, 28 Feb 2013 14:31:53 +0000 Subject: [PATCH] Fix method_setImplementation bug. --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index 2355940..d0db713 100644 --- a/runtime.c +++ b/runtime.c @@ -570,7 +570,7 @@ IMP method_setImplementation(Method method, IMP imp) { if (NULL == method) { return (IMP)NULL; } IMP old = (IMP)method->imp; - method->imp = old; + method->imp = imp; objc_updateDtableForClassContainingMethod(method); return old; }