Changeset: caa9bc98b8d6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=caa9bc98b8d6
Modified Files:
monetdb5/modules/mal/mosaic.c
Branch: mosaic
Log Message:
MOScompressInternal(): fixed compilation:
fixed casts and resort to genuine pointer arithmetics to avoid
"monetdb5/modules/mal/mosaic.c:441: warning: cast from pointer to integer of
different size"
Open / ToDo:
============
- shouldn't sizes (task->size, task->xsize, etc.) be of type size_t rather than
of type lng ?
- shouldn't BUN counts (task->n, etc.) be of type BUN rather than of type lng ?
diffs (12 lines):
diff --git a/monetdb5/modules/mal/mosaic.c b/monetdb5/modules/mal/mosaic.c
--- a/monetdb5/modules/mal/mosaic.c
+++ b/monetdb5/modules/mal/mosaic.c
@@ -438,7 +438,7 @@ MOScompressInternal(Client cntxt, int *r
}
*task->blk = MOSeol;
}
- task->xsize = ((lng)task->dst - (lng)task->hdr) + (lng)MosaicHdrSize;
+ task->xsize = (task->dst - (char*)task->hdr) + MosaicHdrSize;
task->timer = GDKusec() - task->timer;
//#ifdef _DEBUG_MOSAIC_
MOSdumpTask(cntxt,task);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list