Set "saveemp" before calling compute. compute might need it.
This commit is contained in:
parent
0b92bc0cd7
commit
5380ae4768
1 changed files with 6 additions and 1 deletions
|
@ -62,9 +62,14 @@ byte *trypat(bp,len) register byte *bp; {
|
|||
}
|
||||
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