aboutsummaryrefslogtreecommitdiff
path: root/src/coord.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-06-01 09:34:35 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-06-01 09:34:35 +0200
commit62c9e8012e9a0844d9597b90723a928b71ad103b (patch)
treea71621010f556333b10b85cf0ecf3398fd3a4734 /src/coord.c
parentf021ee7fa4975eab02c158451093a28e83a725d9 (diff)
downloadnissy-62c9e8012e9a0844d9597b90723a928b71ad103b.tar.gz
nissy-62c9e8012e9a0844d9597b90723a928b71ad103b.zip
Fixed some bugs - still more testing needed
Diffstat (limited to '')
-rw-r--r--src/coord.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coord.c b/src/coord.c
index abfa1b9..3812ae3 100644
--- a/src/coord.c
+++ b/src/coord.c
@@ -280,7 +280,7 @@ move_eofbepos(Move m, uint64_t ind)
280 a = epose_mtable[m][(ind / POW2TO11)*24]; 280 a = epose_mtable[m][(ind / POW2TO11)*24];
281 b = eofb_mtable[m][ind % POW2TO11]; 281 b = eofb_mtable[m][ind % POW2TO11];
282 282
283 return a/24 + b; 283 return (a/24) * POW2TO11 + b;
284} 284}
285 285
286static uint64_t 286static uint64_t

Generated with cgit - Back to sebastiano.tronto.net