Changeset: 4281d2a3a032 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4281d2a3a032
Modified Files:
monetdb5/mal/mal_interpreter.mx
Branch: default
Log Message:
Dereference the return arguments
Like all arguments, it is not necessarily true that the return
values are at the beginning of the stack frame. It has not caused
any visible error yet, because most code comes from SQL and very
few operations used multiple return values.
diffs (12 lines):
diff --git a/monetdb5/mal/mal_interpreter.mx b/monetdb5/mal/mal_interpreter.mx
--- a/monetdb5/mal/mal_interpreter.mx
+++ b/monetdb5/mal/mal_interpreter.mx
@@ -295,7 +295,7 @@
pp = getInstrPtr(mb, 0);
/* set return types */
for (i = 0; i < pci->retc; i++) {
- lhs = &stk->stk[i];
+ lhs = &stk->stk[pp->argv[i]];
lhs->vtype = getVarGDKType(mb, i);
}
for (k = pp->retc; i < pci->argc; i++, k++) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list