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 NSGetSizeAndAlignment usage #216

Merged
merged 1 commit into from Nov 5, 2021

Conversation

madsmtm
Copy link
Contributor

@madsmtm madsmtm commented Nov 2, 2021

The argument order is (*sizep, *alignp), but it was often incorrectly used the other way around.

This is probably the source of several bugs, but the one that hit me was that an NSValue containing NSRange didn't return the proper value in -getValue. I've added a test for that case, correct me if it's wrong, I'm not familiar with your testing setup.

The argument order is (*sizep, *alignp), but it was often incorrectly used the other way around.
@madsmtm madsmtm requested a review from rfm as a code owner November 2, 2021 09:20
@triplef
Copy link
Member

triplef commented Nov 4, 2021

Good find! 🙏

@fredkiefer fredkiefer merged commit 824fcb8 into gnustep:master Nov 5, 2021
@madsmtm madsmtm deleted the fix-nsgetsizeandalignment branch July 29, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants