Commit e1ae2782 authored by Nicolas Denoyelle's avatar Nicolas Denoyelle

fix range iterator stacking working for scatter and round-robin but not others

parent 727d9116
...@@ -283,7 +283,7 @@ static int tleaf_init_with_it(excit_t it, ...@@ -283,7 +283,7 @@ static int tleaf_init_with_it(excit_t it,
} }
for (i = 0; i < data_it->depth; i++) { for (i = 0; i < data_it->depth; i++) {
ssize_t l = data_it->order[i]; ssize_t l = data_it->order_inverse[i];
err = tleaf_add_level(data_it->levels, err = tleaf_add_level(data_it->levels,
data_it->arities[l]); data_it->arities[l]);
...@@ -301,7 +301,7 @@ static int tleaf_init_with_it(excit_t it, ...@@ -301,7 +301,7 @@ static int tleaf_init_with_it(excit_t it,
goto error_with_levels; goto error_with_levels;
} }
for (i = 0; i < data_it->depth; i++) { for (i = 0; i < data_it->depth; i++) {
ssize_t l = data_it->order_inverse[i]; ssize_t l = data_it->order[i];
err = tleaf_add_level(data_it->levels_inverse, err = tleaf_add_level(data_it->levels_inverse,
data_it->arities[l]); data_it->arities[l]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment