diff --git a/exa/exa_accel.c b/exa/exa_accel.c index 41fcb129f..e632331da 100644 --- a/exa/exa_accel.c +++ b/exa/exa_accel.c @@ -738,7 +738,7 @@ exaPolySegment(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pSeg) } } - prect = xallocarray(nseg, sizeof(xRectangle)); + prect = xallocarray((unsigned int)nseg, sizeof(xRectangle)); for (i = 0; i < nseg; i++) { if (pSeg[i].x1 < pSeg[i].x2) { prect[i].x = pSeg[i].x1; diff --git a/hw/xnest/Display.c b/hw/xnest/Display.c index e6d07dfd1..dc59c6b91 100644 --- a/hw/xnest/Display.c +++ b/hw/xnest/Display.c @@ -41,7 +41,7 @@ XVisualInfo *xnestVisuals; int xnestNumVisuals; int xnestDefaultVisualIndex; Colormap *xnestDefaultColormaps; -static int xnestNumDefaultColormaps; +static unsigned int xnestNumDefaultColormaps; int *xnestDepths; int xnestNumDepths; XPixmapFormatValues *xnestPixmapFormats; diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index ae7e30605..d870a9ab3 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -1239,7 +1239,7 @@ ProcRRSetCrtcConfig(ClientPtr client) rrScrPrivPtr pScrPriv; RRCrtcPtr crtc; RRModePtr mode; - int numOutputs; + unsigned int numOutputs; RROutputPtr *outputs = NULL; RROutput *outputIds; TimeStamp time;