Bug fix
authorbdemsky <bdemsky@uci.edu>
Sun, 3 Sep 2017 03:38:09 +0000 (20:38 -0700)
committerbdemsky <bdemsky@uci.edu>
Sun, 3 Sep 2017 03:38:09 +0000 (20:38 -0700)
src/csolver.cc

index 9112e54..3e240a4 100644 (file)
@@ -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;
                }