Skip to content

Commit a6acfbd

Browse files
committed
oops again
1 parent f049eee commit a6acfbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/route_tree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ class RTRecIterator {
158158
}
159159
/** Compare the original root and the current stack top. */
160160
inline bool operator==(const RTRecIterator& rhs) {
161-
if (_root != rhs._root) // root nodes aren't equal (most common case when rhs == end())
162-
return false;
163161
if (_stack.empty() && rhs._stack.empty()) // both are end()
164162
return true;
163+
if (_root != rhs._root) // root nodes aren't equal (most common case when rhs == end())
164+
return false;
165165
if (_stack.empty() || rhs._stack.empty()) // only one of the stacks are empty
166166
return false;
167167
// true if same root nodes and same stack tops

0 commit comments

Comments
 (0)