First step in making struct variable opaque: the boring mechanical
[pspp-builds.git] / src / math / linreg / predict.c
index ca96ab097e198d248e6aacf5a2208fd1ac808c3c..9303ca6077e046be3084ebdd57d70852e5d6c58e 100644 (file)
@@ -70,7 +70,7 @@ pspp_linreg_predict (const struct variable **predictors,
        {
          found[i] = coe;
          tmp = pspp_coeff_get_est (coe);
-         if (predictors[j]->type == NUMERIC)
+         if (var_is_numeric (predictors[j]))
            {
              tmp *= vals[j]->f;
            }