Skip to content
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

Minmax signing #1790

Merged
merged 2 commits into from
Dec 28, 2019
Merged

Conversation

iamdefinitelyahuman
Copy link
Contributor

What I did

Fix an error in min and max that caused incorrect evaluation with signed comparators - closes #1690

How I did it

Simplify / adjust logic in vyper/functions/functions.py - see code, it's fairly straightforward.

How to verify it

Run the tests. I added a new test case to check the example given in #1690.

Cute Animal Picture

image

@fubuloubu fubuloubu merged commit fb7ac96 into vyperlang:master Dec 28, 2019
@iamdefinitelyahuman iamdefinitelyahuman deleted the minmax-signing branch December 28, 2019 17:37
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.

Min and max can incorrectly use signed comparisons depending on argument order
2 participants