We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ad49a commit 38d8b75Copy full SHA for 38d8b75
src/utils/number_utils.ts
@@ -90,7 +90,8 @@ export const NumberUtils: NumberUtils = {
90
eslint-disable-next-line no-restricted-globals
91
-- This is allowed since this helper should not be called unless bigint features are enabled
92
*/
93
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
+ const intermediate = (BigInt(hi) << BigInt(32)) + BigInt(lo);
94
+ return BigInt.asIntN(64, intermediate);
95
},
96
97
/** Reads a little-endian 64-bit float from source */
0 commit comments