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: fix slice init length #5340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cuishuang
Copy link
Contributor

@cuishuang cuishuang commented Sep 26, 2024

The intention here should be to initialize a slice with a capacity of numVMs-1 rather than initializing the length of this slice.

@a-nogikh
Copy link
Collaborator

The intention here was actually to have a slice of numVMs-1 items, to which we a bit later add one more item to have a slice of numVMs elements. It emulates a bisection test() step and an empty instance.EnvTestResult means that the corresponding "VM" did not crash.

@dvyukov
Copy link
Collaborator

dvyukov commented Sep 26, 2024

If it causes confusion, then we can re-purpose this PR to add an explanatory comment.

@cuishuang
Copy link
Contributor Author

If it causes confusion, then we can re-purpose this PR to add an explanatory comment.

Thank you for the review. Should I add comments? For the annotation content, if possible, I hope to receive suggestions

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