diff options
Diffstat (limited to 'math/s_fdim.c')
-rw-r--r-- | math/s_fdim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/math/s_fdim.c b/math/s_fdim.c index 8789ca4c38..a051ed8db9 100644 --- a/math/s_fdim.c +++ b/math/s_fdim.c @@ -19,6 +19,7 @@ #include <errno.h> #include <math.h> +#include <math_private.h> double __fdim (double x, double y) @@ -26,7 +27,7 @@ __fdim (double x, double y) if (islessequal (x, y)) return 0.0; - double r = x - y; + double r = math_narrow_eval (x - y); if (isinf (r) && !isinf (x) && !isinf (y)) __set_errno (ERANGE); |