dix: ValidateGC(): fix serialNumber assignment

GC's serialNumber field is unsigned int, but DrawableRec's is unsigned long,
so we need to typecast.

It would be better if they all had the same type, but we can't change them easily,
as that might cause ABI break.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-15 19:14:47 +02:00
committed by Enrico Weigelt
parent a449d5950e
commit e55281e2a5

View File

@@ -77,7 +77,7 @@ ValidateGC(DrawablePtr pDraw, GCPtr pGC)
{
(*pGC->funcs->ValidateGC) (pGC, pGC->stateChanges, pDraw);
pGC->stateChanges = 0;
pGC->serialNumber = pDraw->serialNumber;
pGC->serialNumber = (unsigned)pDraw->serialNumber;
}
/*