From: Magnus Jacobsson Date: Sat, 7 Nov 2020 14:57:07 +0000 (+0100) Subject: Correct assertion and remove 1 -Wparentheses warning in agglomerative_bundling.c X-Git-Tag: 2.46.0~11^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34ee49bb34be590a0baedb8a6b0ff481483980e2;p=graphviz Correct assertion and remove 1 -Wparentheses warning in agglomerative_bundling.c --- diff --git a/lib/mingle/agglomerative_bundling.c b/lib/mingle/agglomerative_bundling.c index 984ce5bb7..3e562f76e 100644 --- a/lib/mingle/agglomerative_bundling.c +++ b/lib/mingle/agglomerative_bundling.c @@ -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]; }