whoops
This commit is contained in:
parent
3dbd4d9a57
commit
d34724227a
|
@ -115,7 +115,7 @@ module.exports.Writer = class {
|
|||
}
|
||||
|
||||
writeLong(data = 0) {
|
||||
if (this.baseSize) {
|
||||
if (this.baseSize == 0) {
|
||||
const buff = Buffer.alloc(8);
|
||||
if (data instanceof BigInt) buff.writeBigInt64BE(data, 0);
|
||||
else buff.writeBigInt64BE(BigInt(data), 0);
|
||||
|
|
Loading…
Reference in New Issue