Skip to content

Commit 3926286

Browse files
authored
Merge pull request #142 from CurbaiCode/bigint-syntax
Replace BigInt Syntax
2 parents 164764d + bab5526 commit 3926286

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ export class Packr extends Unpackr {
543543
let bytes = [];
544544
let alignedSign;
545545
do {
546-
let byte = value & 0xffn;
546+
let byte = value & BigInt(0xff);
547547
alignedSign = (byte & BigInt(0x80)) === (value < BigInt(0) ? BigInt(0x80) : BigInt(0));
548548
bytes.push(byte);
549549
value >>= BigInt(8);

0 commit comments

Comments
 (0)