Skip to content

Commit 3a87c83

Browse files
committed
Fix IOS df overflow issue wkh237#302
1 parent 1cc4359 commit 3a87c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/RNFetchBlobFS.m

Lines changed: 2 additions & 2 deletions
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:@"%ld", totalFreeSpace],
764-
@"total" : [NSString stringWithFormat:@"%ld", totalSpace]
763+
@"free" : [NSNumber numberWithUnsignedLongLong: totalFreeSpace],
764+
@"total" : [NSNumber numberWithUnsignedLongLong: totalSpace],
765765
}]);
766766
} else {
767767
callback(@[@"failed to get storage usage."]);

0 commit comments

Comments
 (0)