From 609e2720804180fa18af22d121cc04a26a786c7d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 7 Nov 2021 11:12:53 -0800 Subject: [PATCH] tri: remove shadowing of 'v1' --- lib/neatogen/delaunay.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/neatogen/delaunay.c b/lib/neatogen/delaunay.c index a09880d1e..6e12dd3ab 100644 --- a/lib/neatogen/delaunay.c +++ b/lib/neatogen/delaunay.c @@ -193,14 +193,14 @@ tri(double *x, double *y, int npt, int *segs, int nsegs, int sepArr) t->e1, t->e2, t->e3)); for (i = 0; i < npt; i++) { - GtsVertex *v1 = (GtsVertex *) vertices[i]; - GtsVertex *v = gts_delaunay_add_vertex(surface, v1, NULL); + GtsVertex *v4 = (GtsVertex *)vertices[i]; + GtsVertex *v = gts_delaunay_add_vertex(surface, v4, NULL); /* if v != NULL, it is a previously added pt with the same - * coordinates as v1, in which case we replace v1 with v + * coordinates as v4, in which case we replace v4 with v */ if (v) { - gts_vertex_replace (v1, v); + gts_vertex_replace(v4, v); } } -- 2.40.0