Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed compiler error in AFHTTPRequestOperation; #417
Casting (void *) block to (__bridge id).  Required as of Xcode 4.4
  • Loading branch information
gcox committed Jul 26, 2012
1 parent 2b23179 commit 1090378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFNetworking/AFHTTPRequestOperation.m
Expand Up @@ -56,7 +56,7 @@

static void AFSwizzleClassMethodWithClassAndSelectorUsingBlock(Class klass, SEL selector, void *block) {
Method originalMethod = class_getClassMethod(klass, selector);
IMP implementation = imp_implementationWithBlock(block);
IMP implementation = imp_implementationWithBlock((__bridge id)(block));
class_replaceMethod(objc_getMetaClass([NSStringFromClass(klass) UTF8String]), selector, implementation, method_getTypeEncoding(originalMethod));
}

Expand Down

0 comments on commit 1090378

Please sign in to comment.