mirror of https://github.com/openXC7/prjxray.git
segmath: fixup inverted logic for --exclude_known
Skip tags and bits if they are _found_ in the excluded sets. Signed-off-by: Rick Altherr <kc8apf@kc8apf.net> Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
parent
744ed997a9
commit
a0f08cf3a2
|
|
@ -175,7 +175,7 @@ void read_input(std::istream &f, std::string filename)
|
|||
|
||||
f >> token;
|
||||
|
||||
if (exclude_bits.find(token) == exclude_bits.end())
|
||||
if (exclude_bits.find(token) != exclude_bits.end())
|
||||
continue;
|
||||
|
||||
if (bit_ids.count(token) == 0) {
|
||||
|
|
@ -196,7 +196,7 @@ void read_input(std::istream &f, std::string filename)
|
|||
|
||||
f >> token;
|
||||
|
||||
if (exclude_tags.find(token) == exclude_tags.end()) {
|
||||
if (exclude_tags.find(token) != exclude_tags.end()) {
|
||||
// Consume the rest of the line.
|
||||
f >> token;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue