There was an error while loading. Please reload this page.
1 parent 3ab0c53 commit 1ef8f8aCopy full SHA for 1ef8f8a
src/stream/MiniStreamRW.ts
@@ -54,7 +54,7 @@ export class MiniStreamRW implements StreamRW {
54
}
55
56
getMiniSectorData(position: number): CFDataview {
57
- const sectorPosition = position * Math.floor(this.header.getMiniSectorShift() / this.header.getSectorShift());
+ const sectorPosition = Math.floor(position * this.header.getMiniSectorShift() / this.header.getSectorShift());
58
const shiftInsideSector = position * this.header.getMiniSectorShift() % this.header.getSectorShift();
59
return this.sectors.sector(this.miniStreamSectorChain[sectorPosition]).subView(shiftInsideSector, shiftInsideSector + this.header.getMiniSectorShift());
60
0 commit comments