Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0767e55

Browse files
committed
Critical bug fix in XML exporting
1 parent 5ac03bc commit 0767e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xml_parsing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ void addTreeToXML(const Tree& tree,
941941
for(const auto& [name, value]: node.config().output_ports)
942942
{
943943
// avoid duplicates, in the case of INOUT ports
944-
if(node.config().input_ports.count(name))
944+
if(node.config().input_ports.count(name) == 0)
945945
{
946946
elem->SetAttribute(name.c_str(), value.c_str());
947947
}

0 commit comments

Comments
 (0)