Skip to content

Use "long" int calculators where possible #4

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

Merged
merged 17 commits into from
Oct 23, 2024
Merged

Conversation

Vectorial1024
Copy link
Owner

@Vectorial1024 Vectorial1024 commented Oct 22, 2024

If a 64-bit PHP version is detected (i.e., the int is "long"), then provide an alternative code calculator that uses the "long" ints. This ensures the intended correctness and good performance on 64-bit devices that are using PHP.


Other changes:

This also fixes a PHPDoc error in OpenLocationCode.

@Vectorial1024 Vectorial1024 linked an issue Oct 22, 2024 that may be closed by this pull request
@Vectorial1024
Copy link
Owner Author

An unintended side effect of this approach is that, if I have a 64-bit PHP, then I can very easily show this library is working the same way on both 32-bit PHP and 64-bit PHP.

@Vectorial1024 Vectorial1024 merged commit f958da0 into master Oct 23, 2024
1 check passed
@Vectorial1024 Vectorial1024 deleted the olc_x86_x64 branch October 23, 2024 07:16
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.

Correctness vs Compatibility: some thoughts
1 participant