Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 18, 2024
1 parent be2b862 commit 8b9d5a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cramFile/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,10 @@ export function parseLtf8(buffer: Uint8Array, initialOffset: number) {
buffer[offset + 6]!)
offset += 7
} else if (countFlags < 0xff) {
n = longFromBytesToUnsigned(buffer.slice(offset + 1, offset + 8), false)

n = longFromBytesToUnsigned(buffer.subarray(offset + 1, offset + 8))
offset += 8
} else {
n = longFromBytesToUnsigned(buffer.subarray(offset + 1, offset + 9), false)

n = longFromBytesToUnsigned(buffer.subarray(offset + 1, offset + 9))
offset += 9
}
return [n, offset - initialOffset] as const
Expand Down

0 comments on commit 8b9d5a2

Please sign in to comment.