-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the == operator of Path #5444
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,8 +79,8 @@ struct Step { | |
} | ||
|
||
bool operator==(const Step& rhs) const { | ||
return dst == rhs.dst && type == rhs.type && name == rhs.name && ranking == rhs.ranking && | ||
props == rhs.props; | ||
return dst == rhs.dst && (type == rhs.type || type == -rhs.type) && name == rhs.name && | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we compare There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's not needed, assuming This diff avoids treating two physical versions of the same self-reflective edges (constructed as STEPs here) as different. |
||
ranking == rhs.ranking && props == rhs.props; | ||
} | ||
|
||
bool operator<(const Step& rhs) const { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix
operator<
too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Fixed.