From 8b9d5a29314541ed9511cbfd8e26c29adab082ac Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 18 Dec 2024 18:31:55 -0500 Subject: [PATCH] Fix type error --- src/cramFile/util.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cramFile/util.ts b/src/cramFile/util.ts index ca0360a2..666cf493 100644 --- a/src/cramFile/util.ts +++ b/src/cramFile/util.ts @@ -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