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:
Rick Altherr 2017-11-20 16:52:51 -08:00 committed by Tim 'mithro' Ansell
parent 744ed997a9
commit a0f08cf3a2
1 changed files with 2 additions and 2 deletions

View File

@ -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;