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: build warning - cast from pointer to integer of different size #92

Closed
wants to merge 17 commits into from

Conversation

ChromaticIsobar
Copy link
Contributor

Build gives a warning (or breaks, using -Werror) on Ubuntu for a Windows 64 bit target using the x86_64-w64-mingw32-gcc compiler. Error is

json.c:156:42: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]

Changing the type cast from unsigned long to uintptr_t prevents the warning and should be cross-platform.

Copy link
Member

@LB-- LB-- left a comment

Choose a reason for hiding this comment

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

I am confused by the number of different commits, it looks like there are a lot of changes unrelated to the original purpose of this PR. Would you be able to reduce it back down to just the changes necessary for fixing the 64-bit pointer/int conversion issues?

@ChromaticIsobar
Copy link
Contributor Author

Simply, months after this PR was being ignored, I updated my repo to #93 .
As you can clearly see, I have authored only one of those commits (2c03ac1). That commit is sufficient to the purpose of the PR.
I will cherry-pick it out for you and make a new PR

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.

None yet

8 participants