marinofaggiana 5 years ago
parent
commit
3ba82a3cd4

+ 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]) {