dpp: always set zero-th variable with values

This commit is contained in:
Daniel Kochmański 2017-02-19 11:10:30 +01:00
parent ef65a8b1ac
commit 91c45d09cd

View file

@ -813,7 +813,7 @@ put_return(void)
}
put_tabs(t);
fprintf(out, "the_env->nvalues = %d;\n", nres);
for (i = nres-1; i > 0; i--) {
for (i = nres-1; i >= 0; i--) {
put_tabs(t);
fprintf(out, "the_env->values[%d] = __value%d;\n", i, i);
}