sna: Avoid mixing signed/unsigned int/int16 arithmetric

Life becomes unpleasant with sign extension.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-31 14:17:40 +01:00
parent 660c89e974
commit 90ae4f8532
1 changed files with 2 additions and 2 deletions

View File

@ -5881,7 +5881,7 @@ sna_poly_zero_line_blt(DrawablePtr drawable,
while (--n) {
int16_t sdx, sdy;
uint16_t adx, ady, length;
int adx, ady, length;
int e, e1, e2, e3;
int x1 = x2, x;
int y1 = y2, y;
@ -7079,7 +7079,7 @@ sna_poly_zero_segment_blt(DrawablePtr drawable,
const xSegment *s = _s;
do {
int16_t sdx, sdy;
uint16_t adx, ady, length;
int adx, ady, length;
int e, e1, e2, e3;
int x1, x2;
int y1, y2;