mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
Fixes for 64 bits compilation in subprojects (XMLRPC).
This commit is contained in:
parent
1dc1abfa52
commit
4f5ef86508
3 changed files with 3 additions and 3 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ static XMLRPCConnectionManager *sharedInstance = nil;
|
|||
}
|
||||
|
||||
- (int)numberOfActiveConnections {
|
||||
return [myConnections count];
|
||||
return (int)[myConnections count];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue