diff --git a/vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp b/vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp index d1242c4e6..ac945861a 100644 --- a/vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp +++ b/vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp @@ -113,7 +113,7 @@ std::vector RRChan::get_segment_ids() const { std::vector::iterator it; /* Try to find the node_segment id in the list */ it = find(seg_list.begin(), seg_list.end(), node_segments_[inode]); - if ( it != seg_list.end() ) { + if ( it == seg_list.end() ) { /* Not found, add it to the list */ seg_list.push_back(node_segments_[inode]); }