Skip to content

Commit

Permalink
Reverted to bigints returning as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Rentacookie committed Oct 31, 2024
1 parent 05fa4f5 commit d616399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const parseUInt64 = (exports.parseUInt64 = function (parser) {

if (high >>> 21) {
// using bigint here
return BigInt(high) * BigInt(TWO_TO_POWER_THIRTY_TWO) + BigInt(low);
return bigInt(TWO_TO_POWER_THIRTY_TWO).multiply(high).add(low).toString();
}

return high * Math.pow(2, 32) + low;
Expand Down

0 comments on commit d616399

Please sign in to comment.