diff --git a/YTVimeoExtractor/YTVimeoExtractor.m b/YTVimeoExtractor/YTVimeoExtractor.m index cce2a2c..0912b07 100644 --- a/YTVimeoExtractor/YTVimeoExtractor.m +++ b/YTVimeoExtractor/YTVimeoExtractor.m @@ -107,7 +107,7 @@ -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLRespons [connection cancel]; } - NSUInteger capacity = (response.expectedContentLength != NSURLResponseUnknownLength) ? response.expectedContentLength : 0; + NSUInteger capacity = (response.expectedContentLength != NSURLResponseUnknownLength) ? (uint)response.expectedContentLength : 0; self.buffer = [[NSMutableData alloc] initWithCapacity:capacity]; }