X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcoefficient.c;h=1f157433ee21a901eda70718313a2f5edc18c676;hb=635a88e82d0fd7fad47d00fb4dcfe3f7829dff02;hp=2feeedbaa8f2aff28ace93a23cd0a72fd0d43436;hpb=b4fdd51a0bf62800c53c8a805f31ea735d931029;p=pspp-builds.git diff --git a/src/math/coefficient.c b/src/math/coefficient.c index 2feeedba..1f157433 100644 --- a/src/math/coefficient.c +++ b/src/math/coefficient.c @@ -160,7 +160,7 @@ 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; - int found = 0; + struct pspp_coeff *result = NULL; if (v != NULL) @@ -186,8 +186,8 @@ pspp_coeff_var_to_coeff (const struct variable *v, struct pspp_coeff **coefs, if (val != NULL) { j = i; - while (j < n_coef && compare_values (pspp_coeff_get_value (coefs[j], v), - val, var_get_width (v)) != 0) + while (j < n_coef && compare_values_short (pspp_coeff_get_value (coefs[j], v), + val, v) != 0) { j++; }