isl_aff_expand_divs: fix typo
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 20 May 2011 09:50:27 +0000 (11:50 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 20 May 2011 13:10:00 +0000 (15:10 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_aff.c

index e02de69..d0a4e75 100644 (file)
--- a/isl_aff.c
+++ b/isl_aff.c
@@ -419,7 +419,7 @@ __isl_give isl_aff *isl_aff_expand_divs( __isl_take isl_aff *aff,
                                             aff->v->el[offset + j]);
                        j--;
                } else
-                       isl_int_set_si(aff->v->el[offset + j], 0);
+                       isl_int_set_si(aff->v->el[offset + i], 0);
        }
 
        aff->ls = isl_local_space_replace_divs(aff->ls, isl_mat_copy(div));