X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcoefficient.c;h=b3dccc518733a8a079d50e9c11a8b65cbdbc00dd;hb=58e33e78895d4f19240b679a8d0656643a482f41;hp=f78895f8214e4b70b89668477ac1dfe1abc98fe2;hpb=00682302c6f2ea7b64370105f10f010e16fe022e;p=pspp diff --git a/src/math/coefficient.c b/src/math/coefficient.c index f78895f821..b3dccc5187 100644 --- a/src/math/coefficient.c +++ b/src/math/coefficient.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2005, 2009 Free Software Foundation, Inc. + Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -159,18 +159,16 @@ pspp_coeff_var_to_coeff (const struct variable *v, struct pspp_coeff **coefs, { size_t i = 0; size_t j = 0; - size_t v_idx; struct pspp_coeff *result = NULL; if (v != NULL) { - v_idx = var_get_dict_index (v); while (i < n_coef) { if (coefs[i]->v_info != NULL) { - if (var_get_dict_index (coefs[i]->v_info->v) == v_idx) + if (coefs[i]->v_info->v == v) { break; }