From 43c6dd6d4f7750a5f531f5d931628b1ab92ee748 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 8 Aug 2009 20:34:44 -0700 Subject: [PATCH] Eliminate unnecessary casts. --- src/math/levene.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 ); } -- 2.30.2