aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-05-01 19:12:57 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-05-01 19:12:57 +0200
commit5a55c7047f7067e86a13d39ef3bb72e323280c55 (patch)
treead8975cd8f265e9e94c7d8d1fa19cbe99efb3e57
parent1d0943fafdb3c547965917eb4dfcb4d6445461a4 (diff)
downloadnissy-classic-5a55c7047f7067e86a13d39ef3bb72e323280c55.tar.gz
nissy-classic-5a55c7047f7067e86a13d39ef3bb72e323280c55.zip
Fix usage of compose with partially defined cubes
-rw-r--r--src/coord.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coord.c b/src/coord.c
index 0d87ffa..5439d60 100644
--- a/src/coord.c
+++ b/src/coord.c
@@ -524,7 +524,8 @@ init_cphtr_right_cosets_color(int i, int d)
524 cphtr_right_rep[d] = i; 524 cphtr_right_rep[d] = i;
525 for (j = 0; j < FACTORIAL8; j++) { 525 for (j = 0; j < FACTORIAL8; j++) {
526 if (cphtr_left_cosets[j] == 0) { 526 if (cphtr_left_cosets[j] == 0) {
527 cp = compose((Cube){.cp = i}, (Cube){.cp = j}).cp; 527 cp = compose_filtered(
528 (Cube){.cp = i}, (Cube){.cp = j}, pf_cp).cp;
528 cphtr_right_cosets[cp] = d; 529 cphtr_right_cosets[cp] = d;
529 } 530 }
530 } 531 }

Generated with cgit - Back to sebastiano.tronto.net