Changeset: d02a3d38ef86 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d02a3d38ef86 Modified Files: sql/backends/monet5/sql_rank.c Branch: default Log Message:
durty casts needed for compilation on windows. clean solutions should be a move to wrd-size_t based output of the ranks functions diffs (39 lines): diff --git a/sql/backends/monet5/sql_rank.c b/sql/backends/monet5/sql_rank.c --- a/sql/backends/monet5/sql_rank.c +++ b/sql/backends/monet5/sql_rank.c @@ -39,7 +39,7 @@ SQLdiff(Client cntxt, MalBlkPtr mb, MalS if (!b) throw(SQL, "sql.rank", "Cannot access descriptor"); - cnt = BATcount(b); + cnt = (int)BATcount(b); voidresultBAT(r, TYPE_bit, cnt, b, "Cannot create bat"); rp = (bit*)Tloc(r, 0); if (pci->argc > 2) { @@ -100,7 +100,7 @@ SQLrow_number(Client cntxt, MalBlkPtr mb if (!b) throw(SQL, "sql.row_number", "Cannot access descriptor"); - cnt = BATcount(b); + cnt = (int)BATcount(b); voidresultBAT(r, TYPE_int, cnt, b, "Cannot create bat"); rp = (int*)Tloc(r, 0); if (isaColumnType(getArgType(mb, pci, 2))) { @@ -149,7 +149,7 @@ SQLrank(Client cntxt, MalBlkPtr mb, MalS if (!b) throw(SQL, "sql.rank", "Cannot access descriptor"); - cnt = BATcount(b); + cnt = (int)BATcount(b); voidresultBAT(r, TYPE_int, cnt, b, "Cannot create bat"); rp = (int*)Tloc(r, 0); if (isaColumnType(getArgType(mb, pci, 2))) { @@ -234,7 +234,7 @@ SQLdense_rank(Client cntxt, MalBlkPtr mb if (!b) throw(SQL, "sql.rank", "Cannot access descriptor"); - cnt = BATcount(b); + cnt = (int)BATcount(b); voidresultBAT(r, TYPE_int, cnt, b, "Cannot create bat"); rp = (int*)Tloc(r, 0); if (isaColumnType(getArgType(mb, pci, 2))) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list