marinofaggiana 5 年之前
父節點
當前提交
3ba82a3cd4
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      iOSClient/Library/OCCommunicationLib/OCWebDavClient/Parsers/NCXMLListParser.m

+ 3 - 3
iOSClient/Library/OCCommunicationLib/OCWebDavClient/Parsers/NCXMLListParser.m

@@ -146,11 +146,11 @@
 
     } else if ([elementName isEqualToString:@"d:quota-used-bytes"] && [self.xmlChars length]) {
         
-        self.currentFile.quotaUsedBytes = [self.xmlChars longLongValue];
+        self.currentFile.quotaUsedBytes = (long)[self.xmlChars longLongValue];
 
     } else if ([elementName isEqualToString:@"d:quota-available-bytes"] && [self.xmlChars length]) {
         
-        self.currentFile.quotaAvailableBytes = [self.xmlChars longLongValue];
+        self.currentFile.quotaAvailableBytes = (long)[self.xmlChars longLongValue];
 
     } else if ([elementName isEqualToString:@"oc:permissions"] && [self.xmlChars length]) {
     
@@ -166,7 +166,7 @@
         
     } else if ([elementName isEqualToString:@"oc:size"] && [self.xmlChars length]) {
         
-        self.currentFile.size = [self.xmlChars longLongValue];
+        self.currentFile.size = (long)[self.xmlChars longLongValue];
 
     } else if ([elementName isEqualToString:@"oc:favorite"] && [self.xmlChars length]) {