]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 11 Oct 2020 01:39:41 +0000 (18:39 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Oct 2020 00:25:18 +0000 (17:25 -0700)
A trap_t* coalesces to void* with no cast.

lib/ortho/trapezoid.c

index 78fd51c72df9e7844ae22ecd41f7afbf290f5b77..426abfa7b9428c79d3f098a4790d64bd3797b7bb 100644 (file)
@@ -1049,7 +1049,7 @@ construct_trapezoids(int nseg, segment_t* seg, int* permute, int ntraps,
     TRSIZE = ntraps;
     qs = N_NEW (2*ntraps, qnode_t);
     q_idx = tr_idx = 1;
-    memset((void *)tr, 0, ntraps*sizeof(trap_t));
+    memset(tr, 0, ntraps*sizeof(trap_t));
 
   /* Add the first segment and get the query structure and trapezoid */
   /* list initialised */