GitLab maintenance scheduled for Tomorrow, 2019-03-26, from 12:00 to 13:00 CDT - Services will be unavailable during this time.

Commit b9a6efec authored by Nicolas Denoyelle's avatar Nicolas Denoyelle

fix order bug

parent c77929bb
...@@ -181,7 +181,7 @@ int tleaf_it_rank(const excit_t it, const ssize_t *indexes, ssize_t *n) ...@@ -181,7 +181,7 @@ int tleaf_it_rank(const excit_t it, const ssize_t *indexes, ssize_t *n)
ssize_t i, acc = 1, val = 0; ssize_t i, acc = 1, val = 0;
for (i = data_it->depth - 1; i >= 0; i--) { for (i = data_it->depth - 1; i >= 0; i--) {
val += acc * data_it->buf[data_it->order_inverse[i]]; val += acc * data_it->buf[data_it->order[i]];
acc *= data_it->arities[i]; acc *= data_it->arities[i];
} }
......
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