Use standard C99 isfinite, isnan, isinf in place of GSL substitutes.
[pspp-builds.git] / src / math / linreg.c
index 8ac19a6b91945366c5d1cb0b56ec395df69907aa..7e7d4a5504a88bbf8924e2d04ec450bab8cf3669 100644 (file)
@@ -546,7 +546,7 @@ pspp_linreg_residual (const struct variable **predictors,
     }
   pred = pspp_linreg_predict (predictors, vals, c, n_vals);
 
-  result = gsl_isnan (pred) ? GSL_NAN : (obs->f - pred);
+  result = isnan (pred) ? GSL_NAN : (obs->f - pred);
   return result;
 }
 
@@ -554,7 +554,7 @@ pspp_linreg_residual (const struct variable **predictors,
   Which coefficient is associated with V? The VAL argument is relevant
   only to categorical variables.
  */
-const struct pspp_coeff *
+struct pspp_coeff *
 pspp_linreg_get_coeff (const pspp_linreg_cache * c,
                       const struct variable *v, const union value *val)
 {