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

map: fix map.clone, refactor, fix map_get_1, map_set_1 non-string keys #7538

Merged
merged 1 commit into from
Dec 27, 2020

Conversation

ntrel
Copy link
Contributor

@ntrel ntrel commented Dec 24, 2020

I've split out some work from #7503 in case it is decided not to merge it. It was already reviewed there.

Fix map.clone to clone keys too.
Move DenseArray.clone_key to map method as it will need key metadata for non-string keys.
Change DenseArray.push to only make space, not clone key.

Don't assume string key for map_get_1, map_set_1.

Fix map.clone to clone keys too.
Move DenseArray.clone_key to map method as it will need key metadata.
Change DenseArray.push to only make space, not clone key.

Don't assume string key for map_get_1, map_set_1.
@ntrel ntrel marked this pull request as ready for review December 24, 2020 13:46
@medvednikov medvednikov requested a review from ka-weihe December 24, 2020 19:04
@medvednikov medvednikov merged commit bcdf3ca into vlang:master Dec 27, 2020
medvednikov added a commit that referenced this pull request Dec 27, 2020
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.

2 participants