diff --git a/engine/qclib/qcc_pr_comp.c b/engine/qclib/qcc_pr_comp.c index 6bfdbb931..77fa598cb 100644 --- a/engine/qclib/qcc_pr_comp.c +++ b/engine/qclib/qcc_pr_comp.c @@ -5723,7 +5723,11 @@ QCC_sref_t QCC_PR_GenerateFunctionCallRef (QCC_sref_t newself, QCC_sref_t func, parm++; } else - QCC_FreeTemp(QCC_PR_StatementFlags (&pr_opcodes[copyop_v?copyop_v:copyop_i], src, args[parm-1].ref, NULL, STFL_PRESERVEB)); + { + QCC_sref_t t = args[parm-1].ref; + t.ofs += ofs%3; + QCC_FreeTemp(QCC_PR_StatementFlags (&pr_opcodes[copyop_v?copyop_v:copyop_i], src, t, NULL, STFL_PRESERVEB)); + } } else { diff --git a/engine/qclib/qccguiqt.cpp b/engine/qclib/qccguiqt.cpp index 1034eceac..0ef1f92a0 100644 --- a/engine/qclib/qccguiqt.cpp +++ b/engine/qclib/qccguiqt.cpp @@ -947,7 +947,7 @@ public: return false; //some other file that we're not interested in } - s->annotate(linenum-1, s->annotation(linenum) + line + "\n", 0); + s->annotate(linenum-1, s->annotation(linenum-1) + line + "\n", 0); return true; }