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

Fix static array frame for private functions #1429

Merged
merged 1 commit into from
May 10, 2019

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented May 9, 2019

What I did

Fix #1418.

How I did it

The dynamic push_args segment was inappropriately used for backing up static arrays onto the stack. However, it happened to back up the elements correctly when the array elements were nonzero. This removes dynamic push_args and fixes the length count for the static push_args segment.

How to verify it

Check the new test which passes a zeroed out static array to a private function.

Description for the changelog

Fix static array packing for private functions

Cute Animal Picture

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

@charles-cooper charles-cooper changed the title WIP: Fix static array packing for private functions Fix static array frame for private functions May 9, 2019
Copy link
Contributor

@jacqueswww jacqueswww left a comment

Choose a reason for hiding this comment

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

LGTM

@jacqueswww jacqueswww merged commit 42891b1 into vyperlang:master May 10, 2019
@charles-cooper charles-cooper deleted the private_arrays branch September 24, 2019 11:49
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.

Passing arrays to private and public functions
2 participants