We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f049eee commit a6acfbdCopy full SHA for a6acfbd
vpr/src/route/route_tree.h
@@ -158,10 +158,10 @@ class RTRecIterator {
158
}
159
/** Compare the original root and the current stack top. */
160
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;
163
if (_stack.empty() && rhs._stack.empty()) // both are end()
164
return true;
+ if (_root != rhs._root) // root nodes aren't equal (most common case when rhs == end())
+ return false;
165
if (_stack.empty() || rhs._stack.empty()) // only one of the stacks are empty
166
return false;
167
// true if same root nodes and same stack tops
0 commit comments