From 01502a4ddd2564ab6d801a60cde66bc7c96753a6 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 4 Dec 2025 13:09:50 +0100 Subject: [PATCH] dix: request_priv.h: fix X_REQUEST_REST_COUNT_CARD16() Signed-off-by: Enrico Weigelt, metux IT consult --- dix/request_priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dix/request_priv.h b/dix/request_priv.h index d17f780d15..ffdcff5117 100644 --- a/dix/request_priv.h +++ b/dix/request_priv.h @@ -148,8 +148,8 @@ static inline int __write_reply_hdr_simple( /* swap CARD16 rest of request (after the struct) - check fixed count */ #define X_REQUEST_REST_COUNT_CARD16(count) \ REQUEST_FIXED_SIZE(*stuff, count * sizeof(CARD16)); \ - CARD32 *request_rest = (CARD16 *) (&stuff[1]); \ - do { if (client->swapped) SwapShorts(request_rest, count); } while (0) + CARD16 *request_rest = (CARD16 *) (&stuff[1]); \ + do { if (client->swapped) SwapShorts((signed short*)request_rest, count); } while (0) /* swap CARD32 rest of request (after the struct) - check fixed count */ #define X_REQUEST_REST_COUNT_CARD32(count) \