Skip to content

Use fabsf() and floorf() unconditionally in bundled libgd #13624

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 1 commit into from
Mar 8, 2024

Conversation

petk
Copy link
Member

@petk petk commented Mar 8, 2024

If I'm not mistaken, these are available since C99 with math.h also on Windows, without requiring checking. Upstream libgd uses floorf() unconditionally and doesn't use fabsf().

These are available since C99 with math.h also on Windows, without
requiring checking. Upstream libgd uses floorf() unconditionally and
doesn't use fabsf().
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@petk petk merged commit ba8633a into php:master Mar 8, 2024
@petk petk deleted the patch-gd-math branch March 8, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants