Skip to content

Commit

Permalink
fix precision conversion warning
Browse files Browse the repository at this point in the history
This silents the warning
```
YTVimeoExtractor/YTVimeoExtractor/YTVimeoExtractor.m:110:92: Implicit conversion loses integer precision: 'long long' to 'NSUInteger' (aka 'unsigned int')
```

on xcode 5
  • Loading branch information
sbl committed Nov 29, 2013
1 parent f78aade commit 8e87033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YTVimeoExtractor/YTVimeoExtractor.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 8e87033

Please sign in to comment.