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:
parent
57a120730b
commit
c770a754dc
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user