Revision 7ac1bf11 asi-http-request-with-pithos/Classes/Pithos/ASIPithosObjectRequest.m

b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosObjectRequest.m
218 218
- (NSUInteger)objectContentLength {
219 219
    NSString *objectContentLengthString = [[self responseHeaders] objectForKey:@"Content-Length"];
220 220
    if (objectContentLengthString)
221
        return [objectContentLengthString intValue];
221
        return [objectContentLengthString integerValue];
222 222
    return 0;
223 223
}
224 224

  
......
1651 1651
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict {
1652 1652
	self.currentElement = elementName;
1653 1653
    if ((objectRequestType == ASIPithosObjectRequestHashmap) && [elementName isEqualToString:@"object"]) {
1654
        blockSize = [[attributeDict valueForKey:@"block_size"] intValue];
1654
        blockSize = [[attributeDict valueForKey:@"block_size"] integerValue];
1655 1655
        blockHash = [[NSString alloc] initWithString:[attributeDict valueForKey:@"block_hash"]];
1656
        bytes = [[attributeDict valueForKey:@"bytes"] intValue];
1656
        bytes = [[attributeDict valueForKey:@"bytes"] integerValue];
1657 1657
    } else if ((objectRequestType == ASIPithosObjectRequestVersions) && [elementName isEqualToString:@"version"]) {
1658 1658
        self.currentObject = [ASIPithosObject object];
1659 1659
        currentObject.versionTimestamp = [NSDate dateWithTimeIntervalSince1970:[[attributeDict valueForKey:@"timestamp"] doubleValue]];

Also available in: Unified diff