diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-19 11:18:12 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-19 11:18:12 +0200 |
| commit | 691da8f06614418ed847bdeefa4e708c372a3ecf (patch) | |
| tree | 690fb82226e5226b22c90763465c01fe0de9e7ad /shell | |
| parent | c8a14e0e2789dd87df69c56d94b60d4c53a1d908 (diff) | |
| download | nissy-core-691da8f06614418ed847bdeefa4e708c372a3ecf.tar.gz nissy-core-691da8f06614418ed847bdeefa4e708c372a3ecf.zip | |
Fixed shell usage of optimal and maxsolutions
Diffstat (limited to '')
| -rw-r--r-- | shell/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/shell.c b/shell/shell.c index 2a2720f..26b4535 100644 --- a/shell/shell.c +++ b/shell/shell.c | |||
| @@ -484,7 +484,7 @@ solve_exec(args_t *args) | |||
| 484 | } | 484 | } |
| 485 | 485 | ||
| 486 | if (args->maxsolutions == 0) | 486 | if (args->maxsolutions == 0) |
| 487 | args->maxsolutions = args->optimal >= 0 ? UINT_MAX : 1; | 487 | args->maxsolutions = args->optimal == 20 ? 1 : UINT_MAX; |
| 488 | 488 | ||
| 489 | buf = malloc(size); | 489 | buf = malloc(size); |
| 490 | read = fread(buf, size, 1, file); | 490 | read = fread(buf, size, 1, file); |
