Changeset: c140d753346e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c140d753346e
Modified Files:
gdk/gdk_cand.c
Branch: strimps_update
Log Message:
Fix bug in BATdiffcands
When taking the difference A - B of candidate lists A and B, include any
remaining elements of A when all elements of B have been considered.
diffs (12 lines):
diff --git a/gdk/gdk_cand.c b/gdk/gdk_cand.c
--- a/gdk/gdk_cand.c
+++ b/gdk/gdk_cand.c
@@ -330,7 +330,7 @@ BATdiffcand(BAT *a, BAT *b)
while (!is_oid_nil(ob) && ob < oa) {
ob = canditer_next(&cib);
}
- if (!is_oid_nil(ob) && oa < ob)
+ if ((!is_oid_nil(ob) && oa < ob) || is_oid_nil(ob))
*p++ = oa;
}
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]