X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg%2Fpredict.c;h=9303ca6077e046be3084ebdd57d70852e5d6c58e;hb=888d0f91d57e0c3c5a4206c30ac71eb87bf44227;hp=ca96ab097e198d248e6aacf5a2208fd1ac808c3c;hpb=65e61cc92b48297625bc71cf31b8a19e301eb6c1;p=pspp-builds.git diff --git a/src/math/linreg/predict.c b/src/math/linreg/predict.c index ca96ab09..9303ca60 100644 --- a/src/math/linreg/predict.c +++ b/src/math/linreg/predict.c @@ -70,7 +70,7 @@ pspp_linreg_predict (const struct variable **predictors, { found[i] = coe; tmp = pspp_coeff_get_est (coe); - if (predictors[j]->type == NUMERIC) + if (var_is_numeric (predictors[j])) { tmp *= vals[j]->f; }