From: Eddie Hung Date: Tue, 6 Aug 2019 22:24:55 +0000 (-0700) Subject: Restore original SigSpec::extract() X-Git-Tag: working-ls180~1163^2~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b56be8c5634f8b953cd3d087b4b6e2a11a2c173;p=yosys.git Restore original SigSpec::extract() --- diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index f2c81db72..ba8472ec1 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -3355,7 +3355,7 @@ RTLIL::SigSpec RTLIL::SigSpec::extract(int offset, int length) const { unpack(); cover("kernel.rtlil.sigspec.extract_pos"); - return std::vector(bits_.begin() + offset, length >= 0 ? bits_.begin() + offset + length : bits_.end() + length + 1); + return std::vector(bits_.begin() + offset, bits_.begin() + offset + length); } void RTLIL::SigSpec::append(const RTLIL::SigSpec &signal)