summaryrefslogtreecommitdiff
path: root/src/FillRects.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/FillRects.c')
-rw-r--r--src/FillRects.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FillRects.c b/src/FillRects.c
index 6e026a7..0076f24 100644
--- a/src/FillRects.c
+++ b/src/FillRects.c
@@ -52,10 +52,10 @@ XRenderFillRectangles (Display *dpy,
GetReq(RenderFillRectangles, req);
- req->reqType = info->codes->major_opcode;
+ req->reqType = (CARD8) info->codes->major_opcode;
req->renderReqType = X_RenderFillRectangles;
- req->op = op;
- req->dst = dst;
+ req->op = (CARD8) op;
+ req->dst = (CARD32) dst;
req->color.red = color->red;
req->color.green = color->green;
req->color.blue = color->blue;
@@ -65,7 +65,7 @@ XRenderFillRectangles (Display *dpy,
len = ((long)n) << 1;
if (!dpy->bigreq_size && len > (dpy->max_request_size - req->length))
{
- n = (dpy->max_request_size - req->length) >> 1;
+ n = (int) ((dpy->max_request_size - req->length) >> 1);
len = ((long)n) << 1;
}
SetReqLen(req, len, len);