diff options
Diffstat (limited to '')
| -rw-r--r-- | src/nissy.c | 8 | ||||
| -rw-r--r-- | src/solvers/solutions_types_macros.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/nissy.c b/src/nissy.c index 0811861..5423d8d 100644 --- a/src/nissy.c +++ b/src/nissy.c | |||
| @@ -328,10 +328,10 @@ nissy_solve( | |||
| 328 | return NISSY_ERROR_INVALID_CUBE; | 328 | return NISSY_ERROR_INVALID_CUBE; |
| 329 | } | 329 | } |
| 330 | 330 | ||
| 331 | if (maxmoves > 20) { | 331 | if (maxmoves > SOLUTION_MAXLEN) { |
| 332 | LOG("[solve] 'maxmoves' larger than 20 not supported yet, " | 332 | LOG("[solve] 'maxmoves' larger than %d not supported yet, " |
| 333 | "setting it to 20\n"); | 333 | "setting it to %d\n", SOLUTION_MAXLEN, SOLUTION_MAXLEN); |
| 334 | maxmoves = 20; | 334 | maxmoves = SOLUTION_MAXLEN; |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | if (minmoves > maxmoves) { | 337 | if (minmoves > maxmoves) { |
diff --git a/src/solvers/solutions_types_macros.h b/src/solvers/solutions_types_macros.h index 4727e5a..cecd140 100644 --- a/src/solvers/solutions_types_macros.h +++ b/src/solvers/solutions_types_macros.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #define SOLUTION_MAXLEN 20 | 1 | #define SOLUTION_MAXLEN 25 |
| 2 | 2 | ||
| 3 | typedef struct { | 3 | typedef struct { |
| 4 | uint8_t nmoves; | 4 | uint8_t nmoves; |
