X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flevene.c;h=f7e269991346cd0c6cb076eacec04bcbbd62590c;hb=8b71948cd57dbd2787cb4c50525b957e9be8a62b;hp=7bd582105f940c28ffeb26506d4c5fe941ff728d;hpb=deb4fd96c0c171fc8eb64f7f1e7f5c2af4931416;p=pspp-builds.git diff --git a/src/math/levene.c b/src/math/levene.c index 7bd58210..f7e26999 100644 --- a/src/math/levene.c +++ b/src/math/levene.c @@ -246,9 +246,7 @@ levene2_precalc (struct levene_info *l) struct hsh_table *hash = group_proc_get (var)->group_hash; - for(g = (struct group_statistics *) hsh_first(hash,&hi); - g != 0 ; - g = (struct group_statistics *) hsh_next(hash,&hi) ) + for (g = hsh_first(hash,&hi); g != 0; g = hsh_next(hash, &hi)) { g->lz_mean = g->lz_total / g->n ; } @@ -308,9 +306,7 @@ levene2_postcalc (struct levene_info *l) struct group_proc *gp = group_proc_get (var); struct hsh_table *hash = gp->group_hash; - for(g = (struct group_statistics *) hsh_first(hash,&hi); - g != 0 ; - g = (struct group_statistics *) hsh_next(hash,&hi) ) + for (g = hsh_first(hash, &hi); g != 0; g = hsh_next(hash, &hi)) { lz_numerator += g->n * pow2(g->lz_mean - l->lz[v].grand_mean ); }