From 21f5ae00e2f5d042ce887b5d6cf0450f42c3383c Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 1 Jun 2022 17:24:51 +0200 Subject: Couple of fixes in coordinates --- src/coord.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coord.c b/src/coord.c index 3812ae3..990ab11 100644 --- a/src/coord.c +++ b/src/coord.c @@ -364,7 +364,7 @@ move_cphtr(Move m, uint64_t ind) for (ui = 0; ui < BINOM8ON4*6; ui++) for (j = U; j < NMOVES; j++) aux[j][ui] = - cp_mtable[j][cphtr_right_rep[ind]]; + cp_mtable[j][cphtr_right_rep[ui]]; initialized = true; } @@ -411,7 +411,7 @@ move_drud_eofb(Move m, uint64_t ind) uint64_t a, b; a = coud_mtable[m][ind % POW3TO7]; - b = epose_mtable[m][ind / POW3TO7]; + b = epose_mtable[m][(ind / POW3TO7) * 24] / 24; return a + b * POW3TO7; } -- cgit v1.3