Fixes for 64 bits compilation in subprojects (XMLRPC).

This commit is contained in:
Guillaume BIENKOWSKI 2014-10-23 16:49:34 +02:00
parent 1dc1abfa52
commit 4f5ef86508
3 changed files with 3 additions and 3 deletions

View file

@ -139,7 +139,7 @@ totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;
- (void)connection: (NSURLConnection *)connection didReceiveResponse: (NSURLResponse *)response {
if([response respondsToSelector: @selector(statusCode)]) {
int statusCode = [(NSHTTPURLResponse *)response statusCode];
NSInteger statusCode = [(NSHTTPURLResponse *)response statusCode];
if(statusCode >= 400) {
NSError *error = [NSError errorWithDomain: @"HTTP" code: statusCode userInfo: nil];

View file

@ -67,7 +67,7 @@ static XMLRPCConnectionManager *sharedInstance = nil;
}
- (int)numberOfActiveConnections {
return [myConnections count];
return (int)[myConnections count];
}
#pragma mark -

View file

@ -107,7 +107,7 @@
- (NSURLRequest *)request {
NSData *content = [[self body] dataUsingEncoding: NSUTF8StringEncoding];
NSNumber *contentLength = [NSNumber numberWithInt: [content length]];
NSNumber *contentLength = [NSNumber numberWithInteger:[content length]];
if (!myRequest) {
return nil;