aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/gendata_h48.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-03-22 06:43:11 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-03-22 18:45:47 +0100
commitce3f1cc0ef9f46d70ab5387b1458e9098b40711d (patch)
tree4949745670b829f2211381bf14b8440dcc6ca7b1 /src/solvers/h48/gendata_h48.h
parent0550a16c1cce868bbc3f3b5ad59f80e35cf2a6cd (diff)
downloadnissy-core-ce3f1cc0ef9f46d70ab5387b1458e9098b40711d.tar.gz
nissy-core-ce3f1cc0ef9f46d70ab5387b1458e9098b40711d.zip
Some safety with move arrays, small refactor appendchar
Diffstat (limited to 'src/solvers/h48/gendata_h48.h')
-rw-r--r--src/solvers/h48/gendata_h48.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solvers/h48/gendata_h48.h b/src/solvers/h48/gendata_h48.h
index 55db1be..2d9a9f7 100644
--- a/src/solvers/h48/gendata_h48.h
+++ b/src/solvers/h48/gendata_h48.h
@@ -533,7 +533,7 @@ gendata_h48k2_dfs(h48k2_dfs_arg_t *arg)
533 /* Depth d+3 */ 533 /* Depth d+3 */
534 for (m[2] = 0; m[2] < 18; m[2]++) { 534 for (m[2] = 0; m[2] < 18; m[2]++) {
535 markarg.depth = d+3; 535 markarg.depth = d+3;
536 if (!allowednextmove(m, 3)) { 536 if (!allowednextmove(3, m)) {
537 m[2] += 2; 537 m[2] += 2;
538 continue; 538 continue;
539 } 539 }
@@ -548,7 +548,7 @@ gendata_h48k2_dfs(h48k2_dfs_arg_t *arg)
548 /* Depth d+4 */ 548 /* Depth d+4 */
549 for (m[3] = 0; m[3] < 18; m[3]++) { 549 for (m[3] = 0; m[3] < 18; m[3]++) {
550 markarg.depth = d+4; 550 markarg.depth = d+4;
551 if (!allowednextmove(m, 4)) { 551 if (!allowednextmove(4, m)) {
552 m[3] += 2; 552 m[3] += 2;
553 continue; 553 continue;
554 } 554 }

Generated with cgit - Back to sebastiano.tronto.net