From aff8d41105bc7f17ff7ac44abbcfb075ba8e7928 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sun, 3 Jan 2021 08:01:27 +0100 Subject: Cast AllPlanes to CARD32 for planeMask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: warning: conversion from ‘long unsigned int’ to ‘CARD32’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow] --- src/rmd_getzpixmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3