cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [12/37] git commit: CB-6212 iOS: fix warnings compiled under arm64 64-bit
Date Wed, 23 Apr 2014 18:57:08 GMT
CB-6212 iOS: fix warnings compiled under arm64 64-bit


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/53f72d85
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/53f72d85
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/53f72d85

Branch: refs/heads/master
Commit: 53f72d85c93341d7828300a170f99bb6905c7edd
Parents: 4ca13df
Author: James Jong <wjamesjong@gmail.com>
Authored: Tue Mar 11 13:33:35 2014 -0400
Committer: James Jong <wjamesjong@gmail.com>
Committed: Tue Mar 11 13:33:35 2014 -0400

----------------------------------------------------------------------
 src/ios/CDVLocalFilesystem.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/53f72d85/src/ios/CDVLocalFilesystem.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocalFilesystem.m b/src/ios/CDVLocalFilesystem.m
index 75bb237..5e3b15f 100644
--- a/src/ios/CDVLocalFilesystem.m
+++ b/src/ios/CDVLocalFilesystem.m
@@ -452,7 +452,7 @@
 - (CDVPluginResult *)truncateFileAtURL:(CDVFilesystemURL *)localURI atPosition:(unsigned
long long)pos
 {
     unsigned long long newPos = [self truncateFile:[self filesystemPathForURL:localURI] atPosition:pos];
-    return [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsInt:newPos];
+    return [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsInt:(int)newPos];
 }
 
 - (CDVPluginResult *)writeToFileAtURL:(CDVFilesystemURL *)localURL withData:(NSData*)encData
append:(BOOL)shouldAppend
@@ -469,7 +469,7 @@
             NSUInteger len = [encData length];
             [fileStream open];
 
-            bytesWritten = [fileStream write:[encData bytes] maxLength:len];
+            bytesWritten = (int)[fileStream write:[encData bytes] maxLength:len];
 
             [fileStream close];
             if (bytesWritten > 0) {


Mime
View raw message