Changeset: b1e2a736a0ea for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b1e2a736a0ea
Modified Files:
monetdb5/modules/mal/mal_io.c
Branch: Jul2021
Log Message:
Compilation fix. Add default cases for io.printf functions for now
diffs (23 lines):
diff --git a/monetdb5/modules/mal/mal_io.c b/monetdb5/modules/mal/mal_io.c
--- a/monetdb5/modules/mal/mal_io.c
+++ b/monetdb5/modules/mal/mal_io.c
@@ -487,6 +487,9 @@ IOprintf(Client cntxt, MalBlkPtr mb, Mal
case 9: msg= IOprintf_(&fmt2,*fmt,G(2),G(3),G(4),G(5),G(6),G(7),G(8));
break;
case 10: msg=
IOprintf_(&fmt2,*fmt,G(2),G(3),G(4),G(5),G(6),G(7),G(8),G(9));
+ break;
+ default:
+ throw(MAL, "io.printf", "Too many arguments to io.printf");
}
if (msg== MAL_SUCCEED) {
mnstr_printf(cntxt->fdout,"%s",fmt2);
@@ -521,6 +524,9 @@ IOprintfStream(Client cntxt, MalBlkPtr m
case 10: msg= IOprintf_(&fmt2,*fmt,G(3),G(4),G(5),G(6),G(7),G(8),G(9));
break;
case 11: msg=
IOprintf_(&fmt2,*fmt,G(3),G(4),G(5),G(6),G(7),G(8),G(9),G(10));
+ break;
+ default:
+ throw(MAL, "io.printf", "Too many arguments to io.printf");
}
if (msg== MAL_SUCCEED){
mnstr_printf(f,"%s",fmt2);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list