Skip to content

Commit

Permalink
math/poly: wrapping isnan in T_ABS to help compilation w/ certain gcc…
Browse files Browse the repository at this point in the history
… versions
  • Loading branch information
jgaeddert committed Feb 25, 2016
1 parent 2e4c137 commit 3055eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/src/poly.findroots.c
Expand Up @@ -302,7 +302,7 @@ void POLY(_findroots_bairstow_recursion)(T * _p,
#endif

// adjust u, v
if (isnan(du) || isnan(dv)) {
if (isnan(T_ABS(du)) || isnan(T_ABS(dv))) {
u *= 0.5f;
v *= 0.5f;
} else {
Expand Down

0 comments on commit 3055eb3

Please sign in to comment.