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

Amend Arc value offset calculation #141

Merged
merged 1 commit into from
Dec 17, 2023
Merged

Amend Arc value offset calculation #141

merged 1 commit into from
Dec 17, 2023

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
98 checks passed
@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