summaryrefslogtreecommitdiff
path: root/src/FillRects.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-09-09 16:51:01 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-09-09 20:34:19 -0400
commitea28ca1a2cce8e0d8e5a1f620a809384ed276c37 (patch)
tree9b0743cd1727eb5e6dbfc84f33dd08db49c5f9a9 /src/FillRects.c
parentafc7f259668bbb25d5b06929d529add93fb39ebf (diff)
use casts to reduce compiler warnings (no object change)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
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);