commit 691da8f06614418ed847bdeefa4e708c372a3ecf
parent c8a14e0e2789dd87df69c56d94b60d4c53a1d908
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Sat, 19 Apr 2025 11:18:12 +0200
Fixed shell usage of optimal and maxsolutions
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/shell.c b/shell/shell.c
@@ -484,7 +484,7 @@ solve_exec(args_t *args)
}
if (args->maxsolutions == 0)
- args->maxsolutions = args->optimal >= 0 ? UINT_MAX : 1;
+ args->maxsolutions = args->optimal == 20 ? 1 : UINT_MAX;
buf = malloc(size);
read = fread(buf, size, 1, file);