aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-12-28 20:09:12 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-12-28 20:09:36 +0100
commitb186685932e5fb0be39911cc582aef839789f1a2 (patch)
tree3900441d8f4091a39d802bbb2b3f31356dcf9787 /src
parentd608fb076b1f321133607c85d7e338c3355b3e03 (diff)
downloadnissy-core-b186685932e5fb0be39911cc582aef839789f1a2.tar.gz
nissy-core-b186685932e5fb0be39911cc582aef839789f1a2.zip
Fix bug in appending solutions
Diffstat (limited to 'src')
-rw-r--r--src/solvers/solutions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solvers/solutions.h b/src/solvers/solutions.h
index d92d5ad..8817348 100644
--- a/src/solvers/solutions.h
+++ b/src/solvers/solutions.h
@@ -108,7 +108,7 @@ last_solution_is_duplicate(const solution_list_t l[static 1])
108 j--; 108 j--;
109 for (i = l->used-2; l->buf[i] == l->buf[j]; i--, j--) { 109 for (i = l->used-2; l->buf[i] == l->buf[j]; i--, j--) {
110 if (l->buf[i-1] == '\n') { 110 if (l->buf[i-1] == '\n') {
111 if (l->buf[j-1] == '\n' || j == 0) 111 if (j == 0 || l->buf[j-1] == '\n')
112 return true; 112 return true;
113 else break; 113 else break;
114 } 114 }

Generated with cgit - Back to sebastiano.tronto.net