Skip to content

Conversation

gtsiam
Copy link
Contributor

@gtsiam gtsiam commented Dec 17, 2023

Re-use the implementation of Layout::padding_needed_for() for offset alignment calculations. #138 did not properly account for non-power of two Header sizes - which admittedly matters little, but there's no reason to diverge from std here.

Re-use the implementation of `Layout::padding_needed_for()` for offset
alignment calculations. The previous implementation did not properly
account for non-power of two Header sizes - which admittedly matters
little, but there's no reason to diverge from std here.
Copy link
Owner

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e merged commit aacf829 into taiki-e:main Dec 17, 2023
@taiki-e
Copy link
Owner

taiki-e commented Dec 17, 2023

Published in portable-atomic-util 0.1.5.

@taiki-e taiki-e added the A-portable-atomic-util Area: related to portable-atomic-util crate label Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-portable-atomic-util Area: related to portable-atomic-util crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants