Explorar o código

Merge pull request #434 from gcox/issue-417

Fixed compiler error in AFHTTPRequestOperation; #417
Mattt Thompson %!s(int64=13) %!d(string=hai) anos
pai
achega
0e460eaff5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AFNetworking/AFHTTPRequestOperation.m

+ 1 - 1
AFNetworking/AFHTTPRequestOperation.m

@@ -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));
 }