refactoring, I guess
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 14 Aug 2022 06:54:30 +0000 (23:54 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 14 Aug 2022 06:54:30 +0000 (23:54 -0700)
src/language/stats/ctables.c

index 01c16cc1e98a14f3315fbb433b8e726be61c1c2b..d087e000cf17ae071a570dcbec0ec15cf0c2787d 100644 (file)
@@ -4708,8 +4708,8 @@ 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 ? -1 : a != L)
-                              : a == t->clabels_from_axis ? 2
+                              : t->clabels_to_axis == L ? (t->clabels_from_axis == a ? -1 : a != L)
+                              : t->clabels_from_axis == a ? 2
                               : 0);
 #undef L
                     break;