Skip to content

Minmax signing#1790

Merged
fubuloubu merged 2 commits into
vyperlang:masterfrom
iamdefinitelyahuman:minmax-signing
Dec 28, 2019
Merged

Minmax signing#1790
fubuloubu merged 2 commits into
vyperlang:masterfrom
iamdefinitelyahuman:minmax-signing

Conversation

@iamdefinitelyahuman
Copy link
Copy Markdown
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

Comment thread tests/parser/functions/test_minmax.py
@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