From 8688e7e505fb76be05ab49e9c012f88d7b991145 Mon Sep 17 00:00:00 2001 From: Charlie Williams Date: Wed, 18 Jan 2012 20:18:21 +0000 Subject: [PATCH] Explicit cast in line 378 to uint8_t* needed for some build configs (i.e. mine) to avoid error. --- AFNetworking/AFURLConnectionOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 114cec2..5339da2 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -375,7 +375,7 @@ didReceiveResponse:(NSURLResponse *)response if (self.outputStream) { if ([self.outputStream hasSpaceAvailable]) { - const uint8_t *dataBuffer = [data bytes]; + const uint8_t *dataBuffer = (uint8_t *) [data bytes]; [self.outputStream write:&dataBuffer[0] maxLength:[data length]]; } } else {