summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2021-01-03 08:01:27 +0100
committerVito Caputo <vcaputo@pengaru.com>2021-06-12 00:16:53 -0700
commitaff8d41105bc7f17ff7ac44abbcfb075ba8e7928 (patch)
treebfe6e1e7b8ae1925e927f580e06d965f231289da /src
parenta43c096a4f954cb7290189542d5e232dbac2d1cf (diff)
Cast AllPlanes to CARD32 for planeMask
Fixes: warning: conversion from ‘long unsigned int’ to ‘CARD32’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
Diffstat (limited to 'src')
-rw-r--r--src/rmd_getzpixmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmd_getzpixmap.c b/src/rmd_getzpixmap.c
index 8f6684c..909f003 100644
--- a/src/rmd_getzpixmap.c
+++ b/src/rmd_getzpixmap.c
@@ -57,7 +57,7 @@ int rmdGetZPixmap( Display *dpy,
request->y = y;
request->width = width;
request->height = height;
- request->planeMask = AllPlanes;
+ request->planeMask = (CARD32)AllPlanes;
request->format = ZPixmap;
if (!_XReply(dpy, (xReply *)&reply, 0, xFalse) || !reply.length) {
@@ -101,7 +101,7 @@ int rmdGetZPixmapSHM( Display *dpy,
request->y = y;
request->width = width;
request->height = height;
- request->planeMask = AllPlanes;
+ request->planeMask = (CARD32)AllPlanes;
request->format = ZPixmap;
request->offset = data - shminfo->shmaddr;
© All Rights Reserved