소스 검색

Merge pull request #434 from gcox/issue-417

Fixed compiler error in AFHTTPRequestOperation; #417
Mattt Thompson 13 년 전
부모
커밋
0e460eaff5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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));
 }