#50 Use NSUIntegerMax instead of NSNotFound to indicate undefined length

This commit is contained in:
Pierre-Olivier Latour
2014-04-30 09:56:18 -07:00
parent 70a38c8b01
commit 2dda0c98ce
10 changed files with 42 additions and 39 deletions
@@ -49,7 +49,7 @@
}
- (BOOL)open:(NSError**)error {
if (self.contentLength != NSNotFound) {
if (self.contentLength != NSUIntegerMax) {
_data = [[NSMutableData alloc] initWithCapacity:self.contentLength];
} else {
_data = [[NSMutableData alloc] init];