mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-09 15:47:31 +00:00
Fix Const::const_iterator tag to be bidirectional_iterator_tag
This commit is contained in:
parent
03127173c6
commit
514fb8f901
2 changed files with 8 additions and 8 deletions
|
|
@ -615,11 +615,11 @@ void RTLIL::Const::append(const RTLIL::Const &other) {
|
|||
}
|
||||
|
||||
RTLIL::State RTLIL::Const::const_iterator::operator*() const {
|
||||
if (auto bv = parent.get_if_bits())
|
||||
if (auto bv = parent->get_if_bits())
|
||||
return (*bv)[idx];
|
||||
|
||||
int char_idx = parent.get_str().size() - idx / 8 - 1;
|
||||
bool bit = (parent.get_str()[char_idx] & (1 << (idx % 8)));
|
||||
int char_idx = parent->get_str().size() - idx / 8 - 1;
|
||||
bool bit = (parent->get_str()[char_idx] & (1 << (idx % 8)));
|
||||
return bit ? State::S1 : State::S0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue