diff options
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 7e4b55d43..0aee2d6a9 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3662,7 +3662,10 @@ execarith(Estate state, UNUSED(int do_exec)) fprintf(xtrerr, " ))\n"); fflush(xtrerr); } - errflag = 0; + if (errflag) { + errflag = 0; + return 2; + } /* should test for fabs(val.u.d) < epsilon? */ return (val.type == MN_INTEGER) ? val.u.l == 0 : val.u.d == 0.0; } |