diff --git a/lib/common.js b/lib/common.js index 45ab864..4c18e60 100644 --- a/lib/common.js +++ b/lib/common.js @@ -50,7 +50,7 @@ const parseUInt64 = (exports.parseUInt64 = function (parser) { if (high >>> 21) { // using bigint here - return bigInt(TWO_TO_POWER_THIRTY_TWO).multiply(high).add(low); + return BigInt(high) * BigInt(TWO_TO_POWER_THIRTY_TWO) + BigInt(low); } return high * Math.pow(2, 32) + low;