removed uneccessary cast to pspp_linreg_cache
[pspp-builds.git] / src / math / linreg / predict.c
index 49e24434b5ff5cca2ae5ae1d95ecffc335b06040..6ac7167c8d636583024430e62b5b97ab5bcc1a08 100644 (file)
@@ -31,8 +31,9 @@
 double
 pspp_linreg_predict (const struct variable **predictors,
                     const union value **vals,
-                    const pspp_linreg_cache * c, int n_vals)
+                    const void *c_, int n_vals)
 {
+  const pspp_linreg_cache *c = c_;
   int i;
   int j;
   const struct pspp_linreg_coeff **found;
@@ -86,7 +87,7 @@ double
 pspp_linreg_residual (const struct variable **predictors,
                      const union value **vals,
                      const union value *obs,
-                     const pspp_linreg_cache * c, int n_vals)
+                     const void *c, int n_vals)
 {
   double pred;
   double result;