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