Changeset: dc034ab5056b for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dc034ab5056b Modified Files: monetdb5/modules/kernel/arrays.c Branch: arrays Log Message:
fixed a bug when trying to find the minimum idx in a jon between dimensions diffs (20 lines): diff --git a/monetdb5/modules/kernel/arrays.c b/monetdb5/modules/kernel/arrays.c --- a/monetdb5/modules/kernel/arrays.c +++ b/monetdb5/modules/kernel/arrays.c @@ -1170,12 +1170,12 @@ do { \ dimR->step = stepL/d; \ dimL->step = stepR/d;\ /* bring them as close as possible in one step */ \ - if (l>r) { \ + if (l<r) { \ int steps = (l-r)/stepR; \ - l -= steps*stepR; \ - } else if (r>l) { \ + l += steps*stepR; \ + } else if (r<l) { \ int steps = (r-l)/stepL; \ - r -= steps*stepL; \ + r += steps*stepL; \ }\ while(l != r) { \ while(l<r) \ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list