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

Make it compile nicely on 32 bit ARM platforms with GCC #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azaparov
Copy link

Make it compile nicely on 32 bit ARM platform

@fbbdev
Copy link
Owner

fbbdev commented Feb 1, 2019

Thank you! Could you please elaborate a bit why is this necessary? In theory std::ptrdiff_t should be a pointer-sized signed type on any platform, so I expected it to be the same as long int also on 32-bit ARM.

Is this not true? Which compiler errors are you seeing?

@azaparov
Copy link
Author

azaparov commented Feb 1, 2019 via email

@azaparov
Copy link
Author

azaparov commented Feb 1, 2019 via email

@fbbdev
Copy link
Owner

fbbdev commented Feb 1, 2019

Oh I see... Ironically I introduced all those L prefixes precisely to fix type matching 😄

Yeah the right solution should be explicit casting like Coord(1). I can take some time to make the change myself if you don't have time. Or maybe I could improve min/max templates and make this unnecessary. Let's see.

I won't merge right now, but I'm keeping this PR open while I have a look at the code

@azaparov
Copy link
Author

azaparov commented Feb 1, 2019 via email

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.

2 participants