bireader 1.0.55 → 1.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.cjs CHANGED
@@ -1255,6 +1255,7 @@ function rint64(_this, unsigned, endian) {
1255
1255
  if ((endian == undefined ? _this.endian : endian) == "little") {
1256
1256
  for (let i = 0; i < 8; i++) {
1257
1257
  value = value | BigInt(_this.data[_this.offset]) << BigInt(8 * i);
1258
+ _this.offset += 1;
1258
1259
  }
1259
1260
  if (unsigned == undefined || unsigned == false) {
1260
1261
  if (value & (BigInt(1) << BigInt(63))) {
@@ -1265,6 +1266,7 @@ function rint64(_this, unsigned, endian) {
1265
1266
  else {
1266
1267
  for (let i = 0; i < 8; i++) {
1267
1268
  value = (value << BigInt(8)) | BigInt(_this.data[_this.offset]);
1269
+ _this.offset += 1;
1268
1270
  }
1269
1271
  if (unsigned == undefined || unsigned == false) {
1270
1272
  if (value & (BigInt(1) << BigInt(63))) {
@@ -1272,7 +1274,6 @@ function rint64(_this, unsigned, endian) {
1272
1274
  }
1273
1275
  }
1274
1276
  }
1275
- _this.offset += 8;
1276
1277
  _this.bitoffset = 0;
1277
1278
  return value;
1278
1279
  }