diff options
Diffstat (limited to 'src/solvers')
| -rw-r--r-- | src/solvers/solutions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/solvers/solutions.h b/src/solvers/solutions.h index 802075d..d8e1954 100644 --- a/src/solvers/solutions.h +++ b/src/solvers/solutions.h | |||
| @@ -4,7 +4,7 @@ STATIC bool solution_list_init( | |||
| 4 | solution_list_t [static 1], size_t n, char [n]); | 4 | solution_list_t [static 1], size_t n, char [n]); |
| 5 | STATIC bool solution_moves_equal( | 5 | STATIC bool solution_moves_equal( |
| 6 | const solution_moves_t [static 1], const solution_moves_t [static 1]); | 6 | const solution_moves_t [static 1], const solution_moves_t [static 1]); |
| 7 | STATIC bool solution_moves_is_duplicate(size_t n, const solution_moves_t[n]); | 7 | STATIC bool solution_moves_is_duplicate(size_t n, const solution_moves_t[n+1]); |
| 8 | STATIC bool appendchar(solution_list_t [static 1], char); | 8 | STATIC bool appendchar(solution_list_t [static 1], char); |
| 9 | STATIC int64_t appendsolution(const solution_moves_t [static 1], | 9 | STATIC int64_t appendsolution(const solution_moves_t [static 1], |
| 10 | const solution_settings_t [static 1], solution_list_t [static 1]); | 10 | const solution_settings_t [static 1], solution_list_t [static 1]); |
| @@ -73,12 +73,12 @@ solution_moves_equal( | |||
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | STATIC bool | 75 | STATIC bool |
| 76 | solution_moves_is_duplicate(size_t r, const solution_moves_t s[r]) | 76 | solution_moves_is_duplicate(size_t n, const solution_moves_t s[n+1]) |
| 77 | { | 77 | { |
| 78 | size_t i; | 78 | size_t i; |
| 79 | 79 | ||
| 80 | for (i = 0; i < r; i++) | 80 | for (i = 0; i < n; i++) |
| 81 | if (solution_moves_equal(&s[i], &s[r])) | 81 | if (solution_moves_equal(&s[i], &s[n])) |
| 82 | return true; | 82 | return true; |
| 83 | 83 | ||
| 84 | return false; | 84 | return false; |
