From 53d6dc78cd7acec472b5655f8657419147aab980 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 6 Feb 2012 22:11:19 -0800 Subject: [PATCH] jonckheere-terpstra: Declare variables at beginning of block. --- src/language/stats/jonckheere-terpstra.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2