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 alignment issues of InlineArray #14

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

vorner
Copy link
Contributor

@vorner vorner commented Nov 6, 2020

This is case 4 of #11.

In addition:

  • Make sure the header is also aligned.
  • Sanity check some promised properties (like, having the same size as
    the passed type)
  • Use ptr::write for initializing the header, to not create a reference
    to uninitialized data.

@vorner vorner force-pushed the inline-array-align branch from a649978 to 9a2e789 Compare November 6, 2020 08:54
This is case 4 of bodil#11.

In addition:

* Make sure the header is also aligned.
* Sanity check some promised properties (like, having the same size as
  the passed type)
* Use ptr::write for initializing the header, to not create a reference
  to uninitialized data.
@kornelski kornelski merged commit 3ae48bd into bodil:master Feb 12, 2021
@vorner vorner deleted the inline-array-align branch February 12, 2021 12:31
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