From: Ben Pfaff Date: Sun, 9 Aug 2009 03:34:44 +0000 (-0700) Subject: Eliminate unnecessary casts. X-Git-Tag: sid-i386-build98~11 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43c6dd6d4f7750a5f531f5d931628b1ab92ee748;p=pspp-builds.git Eliminate unnecessary casts. --- 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 ); }