]> granicus.if.org Git - graphviz/commitdiff
tri: remove shadowing of 'v1'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 7 Nov 2021 19:12:53 +0000 (11:12 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Nov 2021 02:33:38 +0000 (18:33 -0800)
lib/neatogen/delaunay.c

index a09880d1e41c00693d7b76d3be77bda8c6e0a61a..6e12dd3abc36136dd7011e2612ff038680c409a2 100644 (file)
@@ -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);
        }
     }