From: Ben Pfaff Date: Tue, 7 Feb 2012 06:11:19 +0000 (-0800) Subject: jonckheere-terpstra: Declare variables at beginning of block. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53d6dc78cd7acec472b5655f8657419147aab980;p=pspp jonckheere-terpstra: Declare variables at beginning of block. --- diff --git a/src/language/stats/jonckheere-terpstra.c b/src/language/stats/jonckheere-terpstra.c index 9bf4cb7413..796168a8ee 100644 --- a/src/language/stats/jonckheere-terpstra.c +++ b/src/language/stats/jonckheere-terpstra.c @@ -387,6 +387,8 @@ show_jt (const struct n_sample_test *nst, const struct jt *jt, const struct vari for (i = 0; i < nst->n_vars; ++i) { + double std_jt; + tab_text (table, 0, i + row_headers, TAT_TITLE, var_to_string (nst->vars[i]) ); @@ -405,7 +407,7 @@ show_jt (const struct n_sample_test *nst, const struct jt *jt, const struct vari tab_double (table, 5, i + row_headers, TAT_TITLE, jt[0].stddev, 0); - double std_jt = (jt[0].obs - jt[0].mean) / jt[0].stddev; + std_jt = (jt[0].obs - jt[0].mean) / jt[0].stddev; tab_double (table, 6, i + row_headers, TAT_TITLE, std_jt, 0);