Skip to content

[SR-7032] Fix compare for lhs and rhs #14739

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

Merged
merged 1 commit into from
Feb 20, 2018
Merged

[SR-7032] Fix compare for lhs and rhs #14739

merged 1 commit into from
Feb 20, 2018

Conversation

alblue
Copy link
Contributor

@alblue alblue commented Feb 20, 2018

The comparison of lhs.compare(lhs) is bogus. A similar fix was pushed in 64aaacb but these were missed.

Resolves SR-7032.

@alblue
Copy link
Contributor Author

alblue commented Feb 20, 2018

@swift-ci please smoke test

@alblue alblue requested a review from jrose-apple February 20, 2018 16:31
Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, yikes. Good thing the < was correct…

@jrose-apple
Copy link
Contributor

This is why I made RelationalOperationsBase in STLExtras.h. (Well after this code was written, though.)

@alblue
Copy link
Contributor Author

alblue commented Feb 20, 2018

@swift-ci please test and merge

@swift-ci swift-ci merged commit 11d96d2 into swiftlang:master Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants