Skip to content

Commit

Permalink
Still working
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 11, 2024
1 parent 7d4f2cb commit 36b9dd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bai.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Long from 'long'
import { fromBytes } from './virtualOffset'
import VirtualOffset, { fromBytes } from './virtualOffset'
import Chunk from './chunk'

import IndexFile from './indexFile'
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function optimizeChunks(chunks: Chunk[], lowest?: VirtualOffset) {
export function parsePseudoBin(bytes: Buffer, offset: number) {
return {
lineCount: Long.fromBytesLE(
Array.prototype.slice.call(bytes, offset, offset + 8),
Array.prototype.slice.call(bytes, offset + 16, offset + 24),
true,
).toNumber(),
}
Expand Down

0 comments on commit 36b9dd4

Please sign in to comment.