xf86-video-intel: src/sna/sna_accel.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Jul 3 05:30:23 PDT 2012


 src/sna/sna_accel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c597e6cd4cb4406878eae07c04ad420d8185d99e
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Jul 3 13:26:33 2012 +0100

    sna: Fix iterator typo
    
    Increment the iterator, not the end-stop.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 65d09b9..1eae904 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -3973,7 +3973,7 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
 
 			dx = -region.extents.x1;
 			dy = -region.extents.y1;
-			for (i = 0; i < n; n++) {
+			for (i = 0; i < n; i++) {
 				assert(box[i].x1 + src_dx >= 0);
 				assert(box[i].y1 + src_dy >= 0);
 				assert(box[i].x2 + src_dx <= src_pixmap->drawable.width);


More information about the xorg-commit mailing list