bireader 1.0.53 → 1.0.54

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
@@ -738,7 +738,7 @@ function fNumber(_this, targetNumber, bits, unsigned, endian) {
738
738
  }
739
739
  }
740
740
  if (value === targetNumber) {
741
- return z; // Found the byte, return the index
741
+ return z - _this.offset; // Found the byte, return the index from current
742
742
  }
743
743
  }
744
744
  return -1; // number not found