From: Ben Pfaff Date: Wed, 2 Jan 2019 22:22:24 +0000 (-0800) Subject: pivot-table: Fix type mismatch in equal_indexes(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=d13ba5beebdde110e47fd8f4cd5ff4fd5ab55303 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.") --- 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])