-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Check the base address against the element alignment rather than stride #70911
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
Check the base address against the element alignment rather than stride #70911
Conversation
Stride is the gap between elements, not the alignment that each element must satisfy (stride need not even be a power of two).
@swift-ci test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was right in withMemoryRebound
and somehow this happened. Thanks!
@swift-ci please test |
Of all the little things about operator precedence in Swift, this is the one I dislike the most. |
it seems this would have failed on 32bit with strict alignment enforcement
59fd7ba
to
67d41ac
Compare
@swift-ci please test |
@swift-ci please test windows platform |
Also get 80c formatting on these calls.
@swift-ci smoke test |
(Using |
Stride is the gap between elements, not the alignment that each element must satisfy (stride need not even be a power of two).