Changeset: 37d8f5c160f9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=37d8f5c160f9
Modified Files:
monetdb5/modules/mal/iterator.c
Branch: Dec2016
Log Message:
Fix casting.
diffs (29 lines):
diff --git a/monetdb5/modules/mal/iterator.c b/monetdb5/modules/mal/iterator.c
--- a/monetdb5/modules/mal/iterator.c
+++ b/monetdb5/modules/mal/iterator.c
@@ -139,7 +139,7 @@ ITRbunIterator(Client cntxt, MalBlkPtr m
*head = 0;
bi = bat_iterator(b);
- if (VALinit(tail, b->ttype, BUNtail(bi, *(BUN*) head)) == NULL) {
+ if (VALinit(tail, b->ttype, BUNtail(bi, *head)) == NULL) {
BBPunfix(b->batCacheid);
throw(MAL, "iterator.nextChunk", MAL_MALLOC_FAIL);
}
@@ -166,14 +166,14 @@ ITRbunNext(Client cntxt, MalBlkPtr mb, M
throw(MAL, "iterator.nextChunk", INTERNAL_BAT_ACCESS);
}
- *head = (BUN)*head + 1;
+ *head = *head + 1;
if (*head >= BUNlast(b)) {
*head = oid_nil;
BBPunfix(b->batCacheid);
return MAL_SUCCEED;
}
bi = bat_iterator(b);
- if (VALinit(tail, b->ttype, BUNtail(bi, *(BUN*) head)) == NULL) {
+ if (VALinit(tail, b->ttype, BUNtail(bi, *head)) == NULL) {
BBPunfix(b->batCacheid);
throw(MAL, "iterator.nextChunk", MAL_MALLOC_FAIL);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list