fixed prediction bug
[pspp-builds.git] / src / math / linreg / coefficient.c
index 5efde99e73fd22a7bd94d25281255fc1c224b100..2154ffe4ae0329610dc4d60bec0736bc33710ece 100644 (file)
@@ -209,7 +209,7 @@ pspp_linreg_get_coeff (const pspp_linreg_cache * c,
       tmp = pspp_linreg_coeff_get_var (result, 0);
       i++;
     }
-  if (i == c->n_coeffs)
+  if (i > c->n_coeffs)
     {
       return NULL;
     }