Changeset: 91e3437010b6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/91e3437010b6
Modified Files:
gdk/gdk_select.c
Branch: Jan2022
Log Message:
Work around a bug (assertion) in the Intel compiler on Windows.
diffs (23 lines):
diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c
--- a/gdk/gdk_select.c
+++ b/gdk/gdk_select.c
@@ -50,13 +50,14 @@ virtualize(BAT *bn)
* (const oid *) Tloc(bn, 0) + BATcount(bn) - 1 ==
* (const oid *) Tloc(bn, BUNlast(bn) - 1))) {
/* column is dense, replace by virtual oid */
- TRC_DEBUG(ALGO, ALGOBATFMT ",seq=" OIDFMT "\n",
- ALGOBATPAR(bn),
- BATcount(bn) > 0 ? * (const oid *) Tloc(bn, 0) : 0);
+ oid tseq; /* work around bug in Intel compiler */
if (BATcount(bn) == 0)
- bn->tseqbase = 0;
+ tseq = 0;
else
- bn->tseqbase = * (const oid *) Tloc(bn, 0);
+ tseq = * (const oid *) Tloc(bn, 0);
+ TRC_DEBUG(ALGO, ALGOBATFMT ",seq=" OIDFMT "\n",
+ ALGOBATPAR(bn), tseq);
+ bn->tseqbase = tseq;
if (VIEWtparent(bn)) {
Heap *h = GDKmalloc(sizeof(Heap));
bat bid = VIEWtparent(bn);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]