This commit is contained in:
Holly Stubbs 2021-08-24 15:13:48 +01:00
parent 3dbd4d9a57
commit d34724227a
1 changed files with 1 additions and 1 deletions

View File

@ -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);