Fix off-by-two overflow in IR dot ordering

This commit is contained in:
Karl Semich
2011-01-27 06:59:53 +08:00
committed by Ryan Pavlik
parent 03440c4b47
commit 66fb96064f

View File

@@ -628,7 +628,7 @@ static void reorder_ir_dots(struct ir_dot_t* dot) {
i = 0;
for (; !dot[i].visible || dot[i].order; ++i)
if (i > 4)
if (i >= 3)
return;
for (j = 0; j < 4; ++j) {