diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-09-09 16:51:01 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-09-09 20:34:19 -0400 |
commit | ea28ca1a2cce8e0d8e5a1f620a809384ed276c37 (patch) | |
tree | 9b0743cd1727eb5e6dbfc84f33dd08db49c5f9a9 /src/Cursor.c | |
parent | afc7f259668bbb25d5b06929d529add93fb39ebf (diff) |
use casts to reduce compiler warnings (no object change)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Cursor.c')
-rw-r--r-- | src/Cursor.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Cursor.c b/src/Cursor.c index 1d44c80..2efa8ca 100644 --- a/src/Cursor.c +++ b/src/Cursor.c @@ -39,12 +39,12 @@ XRenderCreateCursor (Display *dpy, RenderCheckExtension (dpy, info, 0); LockDisplay(dpy); GetReq(RenderCreateCursor, req); - req->reqType = info->codes->major_opcode; + req->reqType = (CARD8) info->codes->major_opcode; req->renderReqType = X_RenderCreateCursor; - req->cid = cid = XAllocID (dpy); - req->src = source; - req->x = x; - req->y = y; + req->cid = (CARD32) (cid = XAllocID (dpy)); + req->src = (CARD32) source; + req->x = (CARD16) x; + req->y = (CARD16) y; UnlockDisplay(dpy); SyncHandle(); @@ -64,9 +64,9 @@ XRenderCreateAnimCursor (Display *dpy, RenderCheckExtension (dpy, info, 0); LockDisplay(dpy); GetReq(RenderCreateAnimCursor, req); - req->reqType = info->codes->major_opcode; + req->reqType = (CARD8) info->codes->major_opcode; req->renderReqType = X_RenderCreateAnimCursor; - req->cid = cid = XAllocID (dpy); + req->cid = (CARD32) (cid = XAllocID (dpy)); len = (long) ncursor * SIZEOF (xAnimCursorElt) >> 2; SetReqLen (req, len, len); |