From 1037a807f5b91387939c538080b787f5ac590a9f Mon Sep 17 00:00:00 2001 From: Steven Fisher Date: Mon, 23 Jul 2012 17:11:54 -0700 Subject: [PATCH] Fixed warning. containsIndex takes a NSUInteger, not a NSInteger. When CLANG_WARN_IMPLICIT_SIGN_CONVERSION is set, this generates a warning. --- AFNetworking/AFHTTPRequestOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFHTTPRequestOperation.m b/AFNetworking/AFHTTPRequestOperation.m index d6ba4a3..5fca1eb 100644 --- a/AFNetworking/AFHTTPRequestOperation.m +++ b/AFNetworking/AFHTTPRequestOperation.m @@ -188,7 +188,7 @@ NSString * AFCreateIncompleteDownloadDirectoryPath(void) { } - (BOOL)hasAcceptableStatusCode { - return ![[self class] acceptableStatusCodes] || [[[self class] acceptableStatusCodes] containsIndex:[self.response statusCode]]; + return ![[self class] acceptableStatusCodes] || [[[self class] acceptableStatusCodes] containsIndex:(NSUInteger)[self.response statusCode]]; } - (BOOL)hasAcceptableContentType {