linreg.c: Fix typo
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 29 Jul 2017 05:11:06 +0000 (07:11 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 29 Jul 2017 05:11:06 +0000 (07:11 +0200)
src/math/linreg.c

index be330bc40e211daa701243815e95072591c1b968..600262f6fbbddabdec66c0561ce94bd29eaa76fd 100644 (file)
@@ -275,7 +275,7 @@ linreg_predict (const struct linreg *c, const double *vals, size_t n_vals)
   size_t j;
   double result;
 
-  assert (n_vals = c->n_coeffs);
+  assert (n_vals == c->n_coeffs);
   if (vals == NULL || c == NULL)
     {
       return GSL_NAN;