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 a6bb919 commit d7061f7Copy full SHA for d7061f7
lib/client/udp-tracker.js
@@ -323,7 +323,7 @@ function toUInt64 (n) {
323
if (n > MAX_UINT || typeof n === 'string') {
324
const buf = new Uint8Array(8)
325
const view = new DataView(buf.buffer)
326
- view.setBigUint64(0, n)
+ view.setBigUint64(0, BigInt(n))
327
return buf
328
}
329
return concat([new Uint8Array(4), common.toUInt32(n)])
0 commit comments