X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcoefficient.c;h=51c1a9077cd6404efb195bb8ca8bc9583b4ac941;hb=41a3a550334da96a9b4e5e089ad1768acf288092;hp=fe0cd43877f3ab57c71f95b8a4b43d30b63098ee;hpb=b8e2dc45abf0cf7a398cb8cef9d9faa24bee6f6c;p=pspp-builds.git diff --git a/src/math/coefficient.c b/src/math/coefficient.c index fe0cd438..51c1a907 100644 --- a/src/math/coefficient.c +++ b/src/math/coefficient.c @@ -69,8 +69,7 @@ pspp_coeff_init (struct pspp_coeff ** c, const struct design_matrix *X) */ c[i]->v_info = xnmalloc (c[i]->n_vars, sizeof (*c[i]->v_info)); assert (c[i]->v_info != NULL); - c[i]->v_info->v = - (const struct variable *) design_matrix_col_to_var (X, i); + c[i]->v_info->v = design_matrix_col_to_var (X, i); if (var_is_alpha (c[i]->v_info->v)) { @@ -79,7 +78,7 @@ pspp_coeff_init (struct pspp_coeff ** c, const struct design_matrix *X) assert (k <= i); k = i - k; c[i]->v_info->val = - cat_subscript_to_value (k, (struct variable *) c[i]->v_info->v); + cat_subscript_to_value (k, c[i]->v_info->v); } } }