瀏覽代碼

Fix IOS fs.df overflow problem #276

Ben Hsieh 8 年之前
父節點
當前提交
6b360d6d2a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      ios/RNFetchBlobFS.m

+ 2
- 2
ios/RNFetchBlobFS.m 查看文件

@@ -760,8 +760,8 @@ NSMutableDictionary *fileStreams = nil;
760 760
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
761 761
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
762 762
         callback(@[[NSNull null], @{
763
-                  @"free" : [NSString stringWithFormat:@"%d", totalFreeSpace],
764
-                  @"total" : [NSString stringWithFormat:@"%d", totalSpace]
763
+                  @"free" : [NSString stringWithFormat:@"%ld", totalFreeSpace],
764
+                  @"total" : [NSString stringWithFormat:@"%ld", totalSpace]
765 765
                 }]);
766 766
     } else {
767 767
         callback(@[@"failed to get storage usage."]);