Skip to content

Commit 3007332

Browse files
committed
Fix to_be_merged_irept::operator==
This returned the wrong value in case sub/named_sub had mismatching size. It really was wrong ever since committed to the repository, proving that the code never was used. It should likely just be removed.
1 parent fba48d3 commit 3007332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/merge_irep.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ bool to_be_merged_irept::operator == (const to_be_merged_irept &other) const
4444
const irept::named_subt &o_named_sub=other.get_named_sub();
4545

4646
if(sub.size()!=o_sub.size())
47-
return true;
47+
return false;
4848
if(named_sub.size()!=o_named_sub.size())
49-
return true;
49+
return false;
5050

5151
{
5252
irept::subt::const_iterator s_it=sub.begin();

0 commit comments

Comments
 (0)