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

php 8.1 #5

Open
cfconsultancy opened this issue Nov 26, 2022 · 1 comment
Open

php 8.1 #5

cfconsultancy opened this issue Nov 26, 2022 · 1 comment

Comments

@cfconsultancy
Copy link

In php 8.1 change

line 387
$x = (($x - (1 / 3) + 1.0) % 2.0 * 0.5 - 0.5) * 16;

to
$x = ((int)($x - (1 / 3) + 1.0) % 2.0 * 0.5 - 0.5) * 16;

@nickdekh
Copy link

nickdekh commented Jan 30, 2023

or maybe change to
$x = (fmod($x - (1 / 3) + 1.0, 2.0) * 0.5 - 0.5) * 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

No branches or pull requests

2 participants