Changeset: 0227d3c8b1d3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0227d3c8b1d3
Modified Files:
monetdb5/modules/mal/array.mx
Branch: SciQL-2
Log Message:
ARRAYfiller(): added some required casts
diffs (19 lines):
diff --git a/monetdb5/modules/mal/array.mx b/monetdb5/modules/mal/array.mx
--- a/monetdb5/modules/mal/array.mx
+++ b/monetdb5/modules/mal/array.mx
@@ -478,13 +478,13 @@ ARRAYfiller(Client cntxt, MalBlkPtr mb,
if (cnt > (lng)BUN_MAX)
throw(MAL, "array.filler", "BAT too large");
- if(!(bn = BATnew(TYPE_void, type, cnt)))
+ if(!(bn = BATnew(TYPE_void, type, (BUN)cnt)))
throw(MAL, "array.filler", MAL_MALLOC_FAIL);
for (i = 0; i < (oid)cnt; i++)
BUNfastins(bn, &i, ATOMvarsized(type)?*(str *)val:val);
- BATsetcount(bn, cnt);
+ BATsetcount(bn, (BUN)cnt);
BATseqbase(bn, 0);
bn->hdense = TRUE;
BATkey(bn, TRUE);
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list