From f6b720e4326ab57c4c11d9502dbb44865c48e1e5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 10 Oct 2020 18:39:41 -0700 Subject: [PATCH] remove unnecessary cast A trap_t* coalesces to void* with no cast. --- lib/ortho/trapezoid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ortho/trapezoid.c b/lib/ortho/trapezoid.c index 78fd51c72..426abfa7b 100644 --- a/lib/ortho/trapezoid.c +++ b/lib/ortho/trapezoid.c @@ -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 */ -- 2.40.0