Merge pull request #434 from gcox/issue-417
Fixed compiler error in AFHTTPRequestOperation; #417
This commit is contained in:
commit
0e460eaff5
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ NSSet * AFContentTypesFromHTTPHeader(NSString *string) {
|
|||
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue