Commit 9937183e authored by Alexander Volkov's avatar Alexander Volkov Committed by Adam Jackson

Fix build with gcc 9.3.0's -Werror=alloc-size-larger-than=

parent 89f42b88
Pipeline #141019 passed with stages
in 5 minutes and 58 seconds
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment