aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/solve.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/solvers/h48/solve.h')
-rw-r--r--src/solvers/h48/solve.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/solvers/h48/solve.h b/src/solvers/h48/solve.h
index b67aedc..c2dce91 100644
--- a/src/solvers/h48/solve.h
+++ b/src/solvers/h48/solve.h
@@ -4,7 +4,7 @@ typedef struct {
4 int8_t nmoves; 4 int8_t nmoves;
5 int8_t depth; 5 int8_t depth;
6 uint8_t moves[MAXLEN]; 6 uint8_t moves[MAXLEN];
7 int64_t *nsols; 7 _Atomic int64_t *nsols;
8 int64_t maxsolutions; 8 int64_t maxsolutions;
9 uint8_t h; 9 uint8_t h;
10 uint8_t k; 10 uint8_t k;
@@ -167,7 +167,7 @@ solve_h48(
167 char *solutions 167 char *solutions
168) 168)
169{ 169{
170 int64_t nsols; 170 _Atomic int64_t nsols;
171 dfsarg_solveh48_t arg; 171 dfsarg_solveh48_t arg;
172 tableinfo_t info; 172 tableinfo_t info;
173 173
@@ -199,6 +199,7 @@ solve_h48(
199 arg.npremoves = 0; 199 arg.npremoves = 0;
200 solve_h48_dfs(&arg); 200 solve_h48_dfs(&arg);
201 } 201 }
202 202 **arg.nextsol = '\0';
203 (*arg.nextsol)++;
203 return nsols; 204 return nsols;
204} 205}

Generated with cgit - Back to sebastiano.tronto.net