Set saveemp before calling "compute". "compute" might need it!
This commit is contained in:
parent
48296556f5
commit
0b92bc0cd7
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue