From 109037831a7cb5461d0c383bc3c348003b1a7d29 Mon Sep 17 00:00:00 2001 From: George Cox Date: Thu, 26 Jul 2012 08:05:20 -0400 Subject: [PATCH] Fixed compiler error in AFHTTPRequestOperation; #417 Casting (void *) block to (__bridge id). Required as of Xcode 4.4 --- AFNetworking/AFHTTPRequestOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFHTTPRequestOperation.m b/AFNetworking/AFHTTPRequestOperation.m index 267d04d..c78e8ef 100644 --- a/AFNetworking/AFHTTPRequestOperation.m +++ b/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)); }