Changeset: 632116c3f81b for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=632116c3f81b Modified Files: gdk/gdk_search.c Branch: leftmart Log Message:
stupid parenthesis took me hours to debug... diffs (14 lines): diff --git a/gdk/gdk_search.c b/gdk/gdk_search.c --- a/gdk/gdk_search.c +++ b/gdk/gdk_search.c @@ -751,8 +751,8 @@ SORTfndwhich(BAT *b, const void *v, enum end = hi; if (lo >= hi || (use_orderidx && (atom_LE(BUNtail(bi,*(oid *)BUNtail(bio,hi-1) - b->hseqbase + BUNfirst(b)), v, b->ttype))) || - (!use_orderidx && b->tsorted ? atom_LE(BUNtail(bi, hi - 1), v, b->ttype) : atom_GE(BUNtail(bi, hi - 1), v, b->ttype))) { - /* shortcut: if BAT is empty or first (and + (!use_orderidx && (b->tsorted ? atom_LE(BUNtail(bi, hi - 1), v, b->ttype) : atom_GE(BUNtail(bi, hi - 1), v, b->ttype)))) { + /* shortcut: if BAT is empty or last (and * hence all) tail value is <= v (if sorted) * or >= v (if revsorted), we're done */ return hi; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list