From 2b29f671e938c39ab6c4f198e685951552b9cae8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 8 Jan 2021 22:18:35 -0800 Subject: [PATCH] pivot-table: Minor coding style improvements. --- src/output/pivot-table.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/output/pivot-table.c b/src/output/pivot-table.c index aa3b9b51c2..671544ef06 100644 --- a/src/output/pivot-table.c +++ b/src/output/pivot-table.c @@ -1265,7 +1265,6 @@ pivot_table_move_dimension (struct pivot_table *table, return; } - /* Update the current layer, if necessary. If we're moving within the layer axis, preserve the current layer. */ if (dim->axis_type == PIVOT_AXIS_LAYER) @@ -1584,8 +1583,8 @@ pivot_table_convert_indexes_ptod (const struct pivot_table *table, for (size_t j = 0; j < axis->n_dimensions; j++) { const struct pivot_dimension *d = axis->dimensions[j]; - dindexes[d->top_index] - = d->presentation_leaves[pindexes[i][j]]->data_index; + size_t pindex = pindexes[i][j]; + dindexes[d->top_index] = d->presentation_leaves[pindex]->data_index; } } } -- 2.30.2