From 76210b02c58c4b48006bcd5375babd650b8a2f55 Mon Sep 17 00:00:00 2001 From: Rick Altherr Date: Thu, 14 Dec 2017 11:10:18 -0800 Subject: [PATCH] Revert "segmath: fixup inverted logic for --exclude_known" Does not work as intended. Remove to avoid confusion. This reverts commit 80d8d6d8d3bc5e7ad5c72c9998777b5e0590ec30. Signed-off-by: Rick Altherr Signed-off-by: Tim 'mithro' Ansell --- tools/segmatch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/segmatch.cc b/tools/segmatch.cc index d8815345..af379fda 100644 --- a/tools/segmatch.cc +++ b/tools/segmatch.cc @@ -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;