whoops
This commit is contained in:
parent
3dbd4d9a57
commit
d34724227a
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ module.exports.Writer = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
writeLong(data = 0) {
|
writeLong(data = 0) {
|
||||||
if (this.baseSize) {
|
if (this.baseSize == 0) {
|
||||||
const buff = Buffer.alloc(8);
|
const buff = Buffer.alloc(8);
|
||||||
if (data instanceof BigInt) buff.writeBigInt64BE(data, 0);
|
if (data instanceof BigInt) buff.writeBigInt64BE(data, 0);
|
||||||
else buff.writeBigInt64BE(BigInt(data), 0);
|
else buff.writeBigInt64BE(BigInt(data), 0);
|
||||||
|
|
Loading…
Reference in a new issue