]> granicus.if.org Git - graphviz/commitdiff
Correct assertion and remove 1 -Wparentheses warning in agglomerative_bundling.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 7 Nov 2020 14:57:07 +0000 (15:57 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 21 Nov 2020 08:17:09 +0000 (09:17 +0100)
lib/mingle/agglomerative_bundling.c

index 984ce5bb7c0a1bfc1da104601be478002bd1e7c2..3e562f76ea0b4f65a28c259dc08cd66ed4f8afe2 100644 (file)
@@ -708,7 +708,7 @@ static pedge* agglomerative_ink_bundling_internal(int dim, SparseMatrix A, pedge
        jj = ja[j];
        e = edges[jj] = pedge_wgts_realloc(edges[jj], npp);
 
-       assert(e->npoints = 2);
+       assert(e->npoints == 2);
        for (l = 0; l < dim; l++){/* move the second point to the last */
          e->x[(npp - 1)*dim+l] = e->x[1*dim+l];
        }