Changeset: 897f7741c7c6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/897f7741c7c6
Modified Files:
monetdb5/modules/kernel/bat5.c
Branch: Jul2021
Log Message:
Restrict cannot be used here
diffs (20 lines):
diff --git a/monetdb5/modules/kernel/bat5.c b/monetdb5/modules/kernel/bat5.c
--- a/monetdb5/modules/kernel/bat5.c
+++ b/monetdb5/modules/kernel/bat5.c
@@ -790,7 +790,7 @@ BKCgetSequenceBase(oid *r, const bat *bi
*/
#define shrinkloop(Type)
\
do {
\
- const Type *restrict in = (Type*)bi.base; \
+ const Type *in = (Type*)bi.base; \
Type *restrict r = (Type*)Tloc(bn, 0); \
for (;p<q; oidx++, p++) {
\
if ( o < ol && *o == oidx ){ \
@@ -870,6 +870,7 @@ BKCshrinkBAT(bat *ret, const bat *bid, c
const int8_t *restrict src = (int8_t*) bi.base;
int8_t *restrict dst = (int8_t*) Tloc(bn, 0);
+ assert(b->ttype != TYPE_oid); /* because of 'restrict',
the oid case can't fall here */
for (;p<q; oidx++, p++) {
if (o < ol && *o == oidx) {
o++;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list