Use NSInteger

This commit is contained in:
Garrett Moon
2016-07-15 16:18:43 -07:00
parent 0e82f50c98
commit 935d6e374c

View File

@@ -117,7 +117,7 @@ NSString * const PINURLErrorDomain = @"PINURLErrorDomain";
dispatch_queue_t delegateQueue = self.delegateQueues[@(task.taskIdentifier)];
[self unlock];
if (!error && [task.response isKindOfClass:[NSHTTPURLResponse class]]) {
int statusCode = [(NSHTTPURLResponse *)task.response statusCode];
NSInteger statusCode = [(NSHTTPURLResponse *)task.response statusCode];
if (statusCode >= 400) {
error = [NSError errorWithDomain:PINURLErrorDomain
code:statusCode