Repository: cordova-plugin-file
Updated Branches:
  refs/heads/dev 4ca13df50 -> 53f72d85c


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/dev
Commit: 53f72d85c93341d7828300a170f99bb6905c7edd
Parents: 4ca13df
Author: James Jong <[email protected]>
Authored: Tue Mar 11 13:33:35 2014 -0400
Committer: James Jong <[email protected]>
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) {

Reply via email to