Skip to content

Commit 2a4b11b

Browse files
committed
fix a long/int issue
1 parent d3e47cd commit 2a4b11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static void slice(String src, String dest, long start, long end, String encode,
637637
}
638638
byte[] buffer = new byte[10240];
639639
while(now < expected) {
640-
long read = in.read(buffer, 0, 10240);
640+
long read = (long) in.read(buffer, 0, 10240);
641641
long remain = expected - now;
642642
if(read <= 0) {
643643
break;

0 commit comments

Comments
 (0)