projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pivot-table: Reduce size of struct pivot_value from 80 bytes to 40.
[pspp]
/
src
/
output
/
pivot-output.c
diff --git
a/src/output/pivot-output.c
b/src/output/pivot-output.c
index 2fa664bffadd6f1616be3716802d85ea9e00cc1b..a170b6ee71a79e670c72c98fef1bda01c9e97b5a 100644
(file)
--- a/
src/output/pivot-output.c
+++ b/
src/output/pivot-output.c
@@
-394,9
+394,10
@@
add_references (const struct pivot_table *pt, const struct table *table,
if (x == cell.d[H][0] && y == cell.d[V][0])
{
if (x == cell.d[H][0] && y == cell.d[V][0])
{
- for (size_t i = 0; i < cell.value->n_footnotes; i++)
+ const struct pivot_value_ex *ex = pivot_value_ex (cell.value);
+ for (size_t i = 0; i < ex->n_footnotes; i++)
{
{
- size_t idx =
cell.value
->footnote_indexes[i];
+ size_t idx =
ex
->footnote_indexes[i];
assert (idx < pt->n_footnotes);
if (!refs[idx] && pt->footnotes[idx]->show)
assert (idx < pt->n_footnotes);
if (!refs[idx] && pt->footnotes[idx]->show)