diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-28 10:26:00 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-07 17:59:53 +0000 |
commit | cc4ad7a3990826ca44470dbca3a5b03c35548cab (patch) | |
tree | f6144d593afacf6ae505b2add37998c7af4b4125 /src/Poly.c | |
parent | 3b888fdf89b4d8f4712c28b340c28604c8ff0b7e (diff) |
Remove unnecessary casts from malloc & free calls
These are not needed in C89 and later
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Poly.c')
-rw-r--r-- | src/Poly.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -249,8 +249,8 @@ XRenderCompositeDoublePoly (Display *dpy, XFixed x, y, prevx = 0, prevy = 0, firstx = 0, firsty = 0; XFixed top = 0, bottom = 0; /* GCCism */ - edges = (Edge *) Xmalloc (npoints * sizeof (Edge) + - (npoints * npoints * sizeof (XTrapezoid))); + edges = Xmalloc ((npoints * sizeof (Edge)) + + (npoints * npoints * sizeof (XTrapezoid))); if (!edges) return; traps = (XTrapezoid *) (edges + npoints); |