From 3ecb35ec6bebb65520c085d264fa1d2f3ba96f80 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Sat, 2 Sep 2017 20:38:09 -0700 Subject: [PATCH] Bug fix --- src/csolver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csolver.cc b/src/csolver.cc index 9112e54..3e240a4 100644 --- a/src/csolver.cc +++ b/src/csolver.cc @@ -292,7 +292,7 @@ BooleanEdge CSolver::applyLogicalOperation(LogicOp op, BooleanEdge *array, uint } else if (newindex == 1) { return newarray[0]; } else { - qsort(newarray, asize, sizeof(BooleanEdge), ptrcompares); + qsort(newarray, newindex, sizeof(BooleanEdge), ptrcompares); array = newarray; asize = newindex; } -- 2.34.1