From 451dea3462265c8f0a1b539269d2c96c6ac7ab7b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Jan 2022 13:12:31 -0800 Subject: [PATCH] agglomerative_bundling.c: explicitly cast the results of 'realloc' This has no effect in C, but an upcoming change will move this code to C++ where this is required. Gitlab: #2154 --- lib/mingle/agglomerative_bundling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mingle/agglomerative_bundling.c b/lib/mingle/agglomerative_bundling.c index 5e4244b46..a6382cc20 100644 --- a/lib/mingle/agglomerative_bundling.c +++ b/lib/mingle/agglomerative_bundling.c @@ -384,7 +384,7 @@ static pedge* agglomerative_ink_bundling_internal(int dim, SparseMatrix A, pedge improved later */ e = edges[jj] = pedge_double(edges[jj]); - e->wgts = REALLOC(e->wgts, sizeof(double)*4); + e->wgts = (double*)REALLOC(e->wgts, sizeof(double)*4); e->x[1*dim] = meet1.x; e->x[1*dim+1] = meet1.y; e->x[2*dim] = meet2.x; -- 2.40.0