summaryrefslogtreecommitdiff
path: root/src/Poly.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Poly.c')
-rw-r--r--src/Poly.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Poly.c b/src/Poly.c
index 69a2da6..c6be3b0 100644
--- a/src/Poly.c
+++ b/src/Poly.c
@@ -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);