Skip to content

Commit 6b360d6

Browse files
committed
Fix IOS fs.df overflow problem wkh237#276
1 parent 6f711c7 commit 6b360d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/RNFetchBlobFS.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,8 @@ +(void) df:(RCTResponseSenderBlock)callback
760760
totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
761761
totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
762762
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]
765765
}]);
766766
} else {
767767
callback(@[@"failed to get storage usage."]);

0 commit comments

Comments
 (0)