refacotring 2?
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 14 Aug 2022 06:51:53 +0000 (23:51 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 14 Aug 2022 06:51:53 +0000 (23:51 -0700)
src/language/stats/ctables.c

index 2b8636581d0bb07eb044b4206b3ad3cdb3bf3838..01c16cc1e98a14f3315fbb433b8e726be61c1c2b 100644 (file)
@@ -4708,9 +4708,9 @@ ctables_prepare_table (struct ctables_table *t)
                   case CTAT_SUBTABLE:
 #define L PIVOT_AXIS_LAYER
                     n_drop = (t->clabels_from_axis == L ? a != L
-                              : t->clabels_to_axis != L ? (a == t->clabels_from_axis ? 2 : 0)
-                              : a == t->clabels_from_axis ? -1
-                              : a != L);
+                              : t->clabels_to_axis == L ? (a == t->clabels_from_axis ? -1 : a != L)
+                              : a == t->clabels_from_axis ? 2
+                              : 0);
 #undef L
                     break;