From 27ffaa338454a769afb0744fdb0f9102ffdee600 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 2 Jan 2019 14:43:02 -0800 Subject: [PATCH] t-test-paired: Fix format specifiers. Found by GCC. Fixes: 5cab4cf3322f ("output: Introduce pivot tables.") --- src/language/stats/t-test-paired.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/language/stats/t-test-paired.c b/src/language/stats/t-test-paired.c index 921233b68e..a1608cf2cf 100644 --- a/src/language/stats/t-test-paired.c +++ b/src/language/stats/t-test-paired.c @@ -160,7 +160,7 @@ paired_summary (const struct tt *tt, struct paired_samp *os) { struct pair_stats *pp = &os->ps[i]; struct pivot_category *pair = pivot_category_create_group__ ( - variables->root, pivot_value_new_text_format (N_("Pair %d"), i + 1)); + variables->root, pivot_value_new_text_format (N_("Pair %zu"), i + 1)); for (int j = 0; j < 2; j++) { @@ -202,7 +202,7 @@ paired_correlations (const struct tt *tt, struct paired_samp *os) { struct pair_stats *pp = &os->ps[i]; struct pivot_category *group = pivot_category_create_group__ ( - pairs->root, pivot_value_new_text_format (N_("Pair %d"), i + 1)); + pairs->root, pivot_value_new_text_format (N_("Pair %zu"), i + 1)); int row = pivot_category_create_leaf ( group, pivot_value_new_text_format (N_("%s & %s"), @@ -260,7 +260,7 @@ paired_test (const struct tt *tt, const struct paired_samp *os) { struct pair_stats *pp = &os->ps[i]; struct pivot_category *group = pivot_category_create_group__ ( - pairs->root, pivot_value_new_text_format (N_("Pair %d"), i + 1)); + pairs->root, pivot_value_new_text_format (N_("Pair %zu"), i + 1)); int row = pivot_category_create_leaf ( group, pivot_value_new_text_format (N_("%s - %s"), -- 2.30.2