Changeset: ae2a8972d21e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ae2a8972d21e
Modified Files:
        gdk/gdk_batop.c
Branch: Feb2013
Log Message:

Layout.


diffs (21 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -1373,7 +1373,7 @@ BATsubsort(BAT **sorted, BAT **order, BA
                                goto error;
                        grps = (oid *) Tloc(on, BUNfirst(on));
                        for (p = 0, q = BATcount(bn); p < q; p++)
-                                    grps[p] = p;
+                               grps[p] = p;
                        BATsetcount(on, BATcount(bn));
                        on->tkey = 1;
                }
@@ -1434,7 +1434,7 @@ BATsubsort(BAT **sorted, BAT **order, BA
                } else if (b->U->count <= 1) {
                        b->tsorted = b->trevsorted = 1;
                }
-               if ((!(reverse && bn->trevsorted) && !(!reverse && 
bn->tsorted)) &&
+               if (!(reverse ? bn->trevsorted : bn->tsorted) &&
                    do_sort(Tloc(bn, BUNfirst(bn)),
                            on ? Tloc(on, BUNfirst(on)) : NULL,
                            bn->T->vheap ? bn->T->vheap->base : NULL,
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to