From c575ecdb3db9b6acf054fb4c8ad33d3ec0b9cb63 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 10 Jul 2024 18:33:33 +0200 Subject: [PATCH] Xext: xv: use int32_t in ProcXvQueryImageAttributes() Make sure it's really a 32bit integer, since we're hard-casting since we're relying on the buffer being made of 32bit integers (and treating it like CARD32's). If we encounter an arch, where int isn't 32bits, the compiler should shout out loud now. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/xvdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index 5907e1fec5..255bd2ab84 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -1019,8 +1019,8 @@ ProcXvQueryImageAttributes(ClientPtr client) CARD16 width, height; XvImagePtr pImage = NULL; XvPortPtr pPort; - int *offsets; - int *pitches; + int32_t *offsets; + int32_t *pitches; int planeLength; REQUEST(xvQueryImageAttributesReq);