We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 164764d + bab5526 commit 3926286Copy full SHA for 3926286
1 file changed
pack.js
@@ -543,7 +543,7 @@ export class Packr extends Unpackr {
543
let bytes = [];
544
let alignedSign;
545
do {
546
- let byte = value & 0xffn;
+ let byte = value & BigInt(0xff);
547
alignedSign = (byte & BigInt(0x80)) === (value < BigInt(0) ? BigInt(0x80) : BigInt(0));
548
bytes.push(byte);
549
value >>= BigInt(8);
0 commit comments