Changeset: 077f36ae2078 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=077f36ae2078 Modified Files: monetdb5/modules/atoms/mtime_analytic.c Branch: mtime Log Message:
Get the boundaries right.
diffs (23 lines):
diff --git a/monetdb5/modules/atoms/mtime_analytic.c
b/monetdb5/modules/atoms/mtime_analytic.c
--- a/monetdb5/modules/atoms/mtime_analytic.c
+++ b/monetdb5/modules/atoms/mtime_analytic.c
@@ -49,7 +49,8 @@
break;
\
if(is_##TPE1##_nil(bp[j]))
\
break;
\
- if (bp[j] <= vmin || bp[j] >= vmax)
\
+ if ((!is_##TPE1##_nil(vmin) && bp[j] <
vmin) || \
+ (!is_##TPE1##_nil(vmax) &&
bp[j] > vmax)) \
break;
\
}
\
}
\
@@ -76,7 +77,8 @@
for(j=k+1; j<i; j++) {
\
if(is_##TPE1##_nil(bp[j]))
\
break;
\
- if (bp[j] <= vmin || bp[j] >= vmax)
\
+ if ((!is_##TPE1##_nil(vmin) && bp[j] <
vmin) || \
+ (!is_##TPE1##_nil(vmax) &&
bp[j] > vmax)) \
break;
\
}
\
}
\
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list
