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: use untyped keys for DenseArray and interleave keys and values #7142

Merged
merged 2 commits into from
Dec 5, 2020

Conversation

ntrel
Copy link
Contributor

@ntrel ntrel commented Dec 5, 2020

Part of #6991.

Use int instead of u32 for len, cap (less casting, consistent with array).
Still assume string key in has_index() for now (next pull will fix this). Everywhere else in DenseArray keys are now untyped.
Remove unused DenseArray::get().

Use int instead of u32 for len, cap (less casting).
Assume string key for has_index().
Remove unused DenseArray::get().
@ntrel
Copy link
Contributor Author

ntrel commented Dec 5, 2020

C:\Users\RUNNER~1\AppData\Local\Temp\v\vself.17014786791088856896.tmp.c(6979): error C2036: 'voidptr': unknown size

Somewhere voidptr arithmetic is happening. I'm going to file a checker bug about not allowing it. Most compilers treat it as byteptr, but not MSVC. I tracked down three of these but the last one is elusive. I'd rather not install MSVC and there doesn't seem to be an easy way to get V to generate v.c for it without it installed.

Update: found it, and I've implemented the checker error locally. I'll submit it Monday.

@ntrel
Copy link
Contributor Author

ntrel commented Dec 5, 2020

I'm guessing gitly error is unrelated.

@ntrel ntrel marked this pull request as ready for review December 5, 2020 19:49
@medvednikov medvednikov closed this Dec 5, 2020
@medvednikov medvednikov reopened this Dec 5, 2020
@medvednikov medvednikov merged commit 0d28f12 into vlang:master Dec 5, 2020
@ntrel ntrel deleted the dense-data branch December 7, 2020 10:56
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