From d13ba5beebdde110e47fd8f4cd5ff4fd5ab55303 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 2 Jan 2019 14:22:24 -0800 Subject: [PATCH] pivot-table: Fix type mismatch in equal_indexes(). This function was being called with an 'unsigned int *' but it took it as a 'size_t *', which worked fine on 32-bit systems but caused an enormous number of tests to fail on 64-bit systems. Thanks to Alan Mead and John Darrington for assistance. Fixes: 5cab4cf3322f ("output: Introduce pivot tables.") --- src/output/pivot-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/pivot-table.c b/src/output/pivot-table.c index 0b4f0fb4ba..c024f142ee 100644 --- a/src/output/pivot-table.c +++ b/src/output/pivot-table.c @@ -810,7 +810,7 @@ pivot_cell_hash_indexes (const size_t *indexes, size_t n_idx) } static bool -equal_indexes (const size_t *a, const size_t *b, size_t n) +equal_indexes (const size_t *a, const unsigned int *b, size_t n) { for (size_t i = 0; i < n; i++) if (a[i] != b[i]) -- 2.30.2