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

Use std::abs() and std::fabs() instead of abs() and fabs() #189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MoonPadUSer
Copy link
Contributor

I'm not sure where the current abs() and fabs() functions originated from, but I replaced them with std::abs() and std::fabs()

MoonPadUSer and others added 2 commits April 29, 2023 13:08
STL's std::abs and std::fabs are not defined in the math header provided by
C but are accessible through either <cmath> or <cstdlib>.

Change the math header to <cmath> so that builds do not fail on macOS.
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.

2 participants