Skip to content

Fix off-by-one in list type checking#1673

Merged
fubuloubu merged 2 commits into
vyperlang:masterfrom
charles-cooper:fix_list_types
Nov 11, 2019
Merged

Fix off-by-one in list type checking#1673
fubuloubu merged 2 commits into
vyperlang:masterfrom
charles-cooper:fix_list_types

Conversation

@charles-cooper

@charles-cooper charles-cooper commented Oct 31, 2019

Copy link
Copy Markdown
Member

What I did

Fix off-by-one in list type checking

How I did it

The loop wanted to check if there were any elements in the output list yet, but the check should have been >= 1 instead of > 1

How to verify it

Description for the changelog

Fix off-by-one in check for homogeneous list element types.

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@fubuloubu fubuloubu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be great if this off by one error had a test case

@fubuloubu fubuloubu merged commit da3e657 into vyperlang:master Nov 11, 2019
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