Set saveemp before calling "compute". "compute" might need it!

This commit is contained in:
ceriel 1987-03-04 10:32:22 +00:00
parent 48296556f5
commit 0b92bc0cd7

View file

@ -60,9 +60,14 @@ byte *trypat(bp,len) register byte *bp; {
dollar[i].e_v.e_str=emp[i].em_soper;
getint(i,bp);
if (i!=0) {
struct emline *svp = saveemp;
saveemp = emp;
result = compute(&enodes[i]);
if (result.e_typ != EV_INT || result.e_v.e_con == 0)
if (result.e_typ != EV_INT || result.e_v.e_con == 0) {
saveemp = svp;
return(0);
}
}
#ifndef NDEBUG
if (Debug) {