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

Remove max,min,isnan macros in favor of built-ins #353

Merged
merged 1 commit into from
Aug 3, 2018

Conversation

whoenig
Copy link
Contributor

@whoenig whoenig commented Aug 2, 2018

This change removes the max,min and isnan macros
in num.h. The min, max macros are replaced by
fminf and fmaxf, avoiding side-effects that can
be caused by macros.

isnan is replaced by the compiler-provided
macro (part of math.h).

This fixes issue #352.

This change removes the max,min and isnan macros
in num.h. The min, max macros are replaced by
fminf and fmaxf, avoiding side-effects that can
be caused by macros.

isnan is replaced by the compiler-provided
macro (part of math.h).

This fixes issue bitcraze#352.
@krichardsson krichardsson merged commit 1d90925 into bitcraze:master Aug 3, 2018
@krichardsson
Copy link
Contributor

Thanks!

@krichardsson krichardsson modified the milestones: Next release, 2018.10 Oct 18, 2018
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