1
1
mirror of https://github.com/wader/fq.git synced 2024-09-20 08:18:51 +03:00

funcs: make in_bytes/bits_range more generic

This commit is contained in:
Mattias Wadman 2021-09-14 12:55:53 +02:00
parent 57a120730b
commit c770a754dc

View File

@ -317,7 +317,7 @@ def diff($a; $b):
);
def in_bits_range($p):
select(scalars and ._start? and ._start <= $p and $p < ._stop);
select(._start <= $p and $p < ._stop);
def in_bytes_range($p):
select(scalars and ._start? and ._start/8 <= $p and $p < ._stop/8);
select(._start/8 <= $p and $p < ._stop/8);