From 72cdffef7c1cb21111c1696c5eb37b9500ecdf83 Mon Sep 17 00:00:00 2001 From: Kenny Daniel Date: Thu, 13 Jun 2024 00:10:45 -0700 Subject: [PATCH] Fix readBitPacked for 17+ bitwidth --- src/encoding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding.js b/src/encoding.js index d82a2f5..5bb636f 100644 --- a/src/encoding.js +++ b/src/encoding.js @@ -97,7 +97,7 @@ function readBitPacked(reader, header, bitWidth, output, seen) { if (right > 8) { right -= 8 left -= 8 - data >>= 8 + data >>>= 8 } else if (left - right < bitWidth) { // if we don't have bitWidth number of bits to read, read next byte data |= reader.view.getUint8(reader.offset) << left