dix: request_priv.h: fix X_REQUEST_REST_COUNT_CARD16()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-04 13:09:50 +01:00
committed by Enrico Weigelt
parent f00b684cb1
commit 01502a4ddd

View File

@@ -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) \