Commit ddf01d0c authored by Alexander Volkov's avatar Alexander Volkov

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

parent 0ecdd508
Pipeline #135028 passed with stages
in 4 minutes and 55 seconds
...@@ -738,7 +738,7 @@ exaPolySegment(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pSeg) ...@@ -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++) { for (i = 0; i < nseg; i++) {
if (pSeg[i].x1 < pSeg[i].x2) { if (pSeg[i].x1 < pSeg[i].x2) {
prect[i].x = pSeg[i].x1; prect[i].x = pSeg[i].x1;
......
...@@ -41,7 +41,7 @@ XVisualInfo *xnestVisuals; ...@@ -41,7 +41,7 @@ XVisualInfo *xnestVisuals;
int xnestNumVisuals; int xnestNumVisuals;
int xnestDefaultVisualIndex; int xnestDefaultVisualIndex;
Colormap *xnestDefaultColormaps; Colormap *xnestDefaultColormaps;
static int xnestNumDefaultColormaps; static unsigned int xnestNumDefaultColormaps;
int *xnestDepths; int *xnestDepths;
int xnestNumDepths; int xnestNumDepths;
XPixmapFormatValues *xnestPixmapFormats; XPixmapFormatValues *xnestPixmapFormats;
......
...@@ -1239,7 +1239,7 @@ ProcRRSetCrtcConfig(ClientPtr client) ...@@ -1239,7 +1239,7 @@ ProcRRSetCrtcConfig(ClientPtr client)
rrScrPrivPtr pScrPriv; rrScrPrivPtr pScrPriv;
RRCrtcPtr crtc; RRCrtcPtr crtc;
RRModePtr mode; RRModePtr mode;
int numOutputs; unsigned int numOutputs;
RROutputPtr *outputs = NULL; RROutputPtr *outputs = NULL;
RROutput *outputIds; RROutput *outputIds;
TimeStamp time; 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