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

added typecast to uintptr_t for subscription pointer #355

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Jun 19, 2023

This PR attempts to fix a pointer to int cast error due to different size on 32-bit platforms. Occurred in:
https://koji.fedoraproject.org/koji/taskinfo?taskID=101972333

It uses the uintptr_t data type to first "safely" cast the pointer address to an int and then casts it to an uint64_t (as required by the hashmap library).

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

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

+1

@engelmi
Copy link
Member Author

engelmi commented Jun 19, 2023

I'd like to verify that this really fixes the issue in https://koji.fedoraproject.org/koji/taskinfo?taskID=101972333 before merging. Is there a way to build this PR in koji.fedoraproject.org?

@engelmi engelmi force-pushed the fix-pointer-to-int-conversion-in-hashmap-hash branch from e84e42f to c29b425 Compare June 19, 2023 12:11
@mwperina mwperina merged commit a7a13e0 into main Jun 19, 2023
@mwperina mwperina deleted the fix-pointer-to-int-conversion-in-hashmap-hash branch June 19, 2023 12:18
@dougsland
Copy link
Contributor

@engelmi LGTM can we merge?

@pypingou
Copy link
Member

I'd like to verify that this really fixes the issue in https://koji.fedoraproject.org/koji/taskinfo?taskID=101972333 before merging. Is there a way to build this PR in koji.fedoraproject.org?

I'll do a scratch build and report if that doesn't fix it :)

@pypingou
Copy link
Member

https://koji.fedoraproject.org/koji/taskinfo?taskID=102377940 it built! :)

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