Skip to content

Ensure soa![Foo; n] works with n > 2 as intended#42

Open
1Git2Clone wants to merge 1 commit intotim-harding:mainfrom
1Git2Clone:main
Open

Ensure soa![Foo; n] works with n > 2 as intended#42
1Git2Clone wants to merge 1 commit intotim-harding:mainfrom
1Git2Clone:main

Conversation

@1Git2Clone
Copy link
Copy Markdown

In regards to #41, I'm providing a simple fix which ensures soa![Foo; n] works for arrays with n elements by properly incrementing the i variable.

I've also provided an optimization for the solution by first reserving n and changed the test case to use 5 elements instead of 2 in order to make sure that this edge case is covered in the tests.

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.

1 participant