Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67F3D10848 for ; Thu, 13 Mar 2014 13:32:07 +0000 (UTC) Received: (qmail 96531 invoked by uid 500); 13 Mar 2014 13:32:07 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 96511 invoked by uid 500); 13 Mar 2014 13:32:05 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 96503 invoked by uid 99); 13 Mar 2014 13:32:04 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 13:32:04 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 9D46494401F; Thu, 13 Mar 2014 13:32:04 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jamesjong@apache.org To: commits@cordova.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: CB-6212 iOS: fix warnings compiled under arm64 64-bit Date: Thu, 13 Mar 2014 13:32:04 +0000 (UTC) Repository: cordova-plugin-file-transfer Updated Branches: refs/heads/dev c35ca1a5c -> 0f84287df CB-6212 iOS: fix warnings compiled under arm64 64-bit Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/0f84287d Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/0f84287d Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/0f84287d Branch: refs/heads/dev Commit: 0f84287df03e7372eebe1d8620f8a78bb4900b4e Parents: c35ca1a Author: James Jong Authored: Thu Mar 13 09:27:01 2014 -0400 Committer: James Jong Committed: Thu Mar 13 09:27:01 2014 -0400 ---------------------------------------------------------------------- src/ios/CDVFileTransfer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/0f84287d/src/ios/CDVFileTransfer.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVFileTransfer.m b/src/ios/CDVFileTransfer.m index f19bece..1e62438 100644 --- a/src/ios/CDVFileTransfer.m +++ b/src/ios/CDVFileTransfer.m @@ -58,7 +58,7 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream) bytesToWrite - totalBytesWritten); if (result < 0) { CFStreamError error = CFWriteStreamGetError(stream); - NSLog(@"WriteStreamError domain: %ld error: %ld", error.domain, error.error); + NSLog(@"WriteStreamError domain: %ld error: %ld", error.domain, (long)error.error); return result; } else if (result == 0) { return result; @@ -207,7 +207,7 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream) if (mimeType != nil) { [postBodyBeforeFile appendData:[[NSString stringWithFormat:@"Content-Type: %@\r\n", mimeType] dataUsingEncoding:NSUTF8StringEncoding]]; } - [postBodyBeforeFile appendData:[[NSString stringWithFormat:@"Content-Length: %d\r\n\r\n", [fileData length]] dataUsingEncoding:NSUTF8StringEncoding]]; + [postBodyBeforeFile appendData:[[NSString stringWithFormat:@"Content-Length: %ld\r\n\r\n", (long)[fileData length]] dataUsingEncoding:NSUTF8StringEncoding]]; DLog(@"fileData length: %d", [fileData length]); NSData* postBodyAfterFile = [[NSString stringWithFormat:@"\r\n--%@--\r\n", kFormBoundary] dataUsingEncoding:NSUTF8StringEncoding];