Skip to content

Commit 1ef8f8a

Browse files
committed
Fixes issue with retrieving data from MiniStream
1 parent 3ab0c53 commit 1ef8f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream/MiniStreamRW.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class MiniStreamRW implements StreamRW {
5454
}
5555

5656
getMiniSectorData(position: number): CFDataview {
57-
const sectorPosition = position * Math.floor(this.header.getMiniSectorShift() / this.header.getSectorShift());
57+
const sectorPosition = Math.floor(position * this.header.getMiniSectorShift() / this.header.getSectorShift());
5858
const shiftInsideSector = position * this.header.getMiniSectorShift() % this.header.getSectorShift();
5959
return this.sectors.sector(this.miniStreamSectorChain[sectorPosition]).subView(shiftInsideSector, shiftInsideSector + this.header.getMiniSectorShift());
6060
}

0 commit comments

Comments
 (0)