fb: avoid undefined left shift in line drawing

This commit is contained in:
David 2026-10-25 02:08:02 -04:00
commit 40affea2b9

View file

@ -716,7 +716,7 @@ POLYLINE(DrawablePtr pDrawable,
}
e = -len;
e1 <<= 1;
e3 = e << 1;
e3 = e * 2;
FIXUP_ERROR(e, octant, bias);
if (and == 0) {
while (len--) {
@ -875,7 +875,7 @@ POLYSEGMENT(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pseg)
}
e = -len;
e1 <<= 1;
e3 = e << 1;
e3 = e * 2;
FIXUP_ERROR(e, octant, bias);
if (!capNotLast)
len++;