From 691da8f06614418ed847bdeefa4e708c372a3ecf Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 19 Apr 2025 11:18:12 +0200 Subject: Fixed shell usage of optimal and maxsolutions --- shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/shell.c') 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) } 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); -- cgit v1.3