diff --git a/src/libmath.c b/src/libmath.c index 6125f29..998031e 100644 --- a/src/libmath.c +++ b/src/libmath.c @@ -25,7 +25,7 @@ along with this program. If not, see static double inv(double a) { double v; - if (a==0.0) v=HUGE; + if (a==0.0) v=HUGE_VAL; else v = (double)1.0/a; return v; }