From: Jason Stover Date: Sun, 30 Oct 2005 15:02:51 +0000 (+0000) Subject: Fixed column/variable lookup X-Git-Tag: v0.6.0~1152 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbe7ad1a7454599693c188fe1eaf8f5d6e154206;p=pspp-builds.git Fixed column/variable lookup --- diff --git a/src/cat.c b/src/cat.c index 09cdebde..0dd9a014 100644 --- a/src/cat.c +++ b/src/cat.c @@ -354,6 +354,7 @@ design_matrix_create (int n_variables, tmp = &(dm->vars[col]); tmp->v = v; tmp->first_column = col; + tmp->last_column = col; col++; } else if (v->type == ALPHA) @@ -399,7 +400,7 @@ design_matrix_col_to_var_index (const struct design_matrix *dm, size_t col) /* Return a pointer to the variable whose values - are stored in column col. + are stored in column col. BUG IN HERE */ struct variable * design_matrix_col_to_var (const struct design_matrix *dm, size_t col)