Skip to content

Commit

Permalink
fix "cannot mix BigInt and other types" error
Browse files Browse the repository at this point in the history
  • Loading branch information
ephys authored and rusher committed May 18, 2022
1 parent 787a0f9 commit 49b91f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/io/packet.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class Packet {
result = result * 10n + BigInt(this.buf[begin] - 48);
}
this.pos += len;
return negate ? -1 * result : result;
return negate ? -1n * result : result;
}

readDecimalLengthEncoded() {
Expand Down

0 comments on commit 49b91f9

Please sign in to comment.