Skip to content

Fix: remove incorrect assert in utils_align_ptr_up_size_down() #977

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

Conversation

ldorau
Copy link
Contributor

@ldorau ldorau commented Dec 6, 2024

Description

Remove incorrect assert in utils_align_ptr_up_size_down().
A pointer is aligned, but a size is only adjusted to the new pointer.
The size does not have to be aligned.

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

@ldorau ldorau requested a review from a team as a code owner December 6, 2024 16:12
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk left a comment

Choose a reason for hiding this comment

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

do you have a test for that? 😉

Remove incorrect assert in utils_align_ptr_up_size_down().
A pointer is aligned, but a size is only adjusted to the new pointer.
The size does not have to be aligned.

Signed-off-by: Lukasz Dorau <[email protected]>
@ldorau ldorau force-pushed the Remove_incorrect_assert_in_utils_align_ptr_up_size_down branch from c0f247b to b2605ba Compare December 9, 2024 14:27
@ldorau
Copy link
Contributor Author

ldorau commented Dec 9, 2024

do you have a test for that? 😉

@lukaszstolarczuk Tests added

@ldorau ldorau force-pushed the Remove_incorrect_assert_in_utils_align_ptr_up_size_down branch from b2605ba to dd47ffc Compare December 9, 2024 14:53
@ldorau ldorau requested a review from KFilipek December 9, 2024 14:53
@ldorau
Copy link
Contributor Author

ldorau commented Dec 10, 2024

@lukaszstolarczuk @KFilipek please re-review

Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@KFilipek KFilipek merged commit a094b44 into oneapi-src:v0.10.x Dec 10, 2024
77 checks passed
@ldorau ldorau deleted the Remove_incorrect_assert_in_utils_align_ptr_up_size_down branch December 10, 2024 11:04
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.

4 participants