Fix build with gcc 9.3.0's -Werror=alloc-size-larger-than=
This commit is contained in:
parent
89f42b8821
commit
9937183e4b
|
@ -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;
|
||||||
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)
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue