From: ceriel Date: Fri, 21 Jun 1991 10:31:20 +0000 (+0000) Subject: minor improvement to volatile code X-Git-Tag: release-5-5~1102 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1be579a6e785bd488df67b8787eac01ef93ce240;p=ack.git minor improvement to volatile code --- diff --git a/lang/cem/cemcom.ansi/eval.c b/lang/cem/cemcom.ansi/eval.c index 8993fdc0e..08b8f811e 100644 --- a/lang/cem/cemcom.ansi/eval.c +++ b/lang/cem/cemcom.ansi/eval.c @@ -639,7 +639,7 @@ EVAL(expr, val, code, true_label, false_label) default: crash("(EVAL) bad expression class"); } - if (expr->ex_flags & EX_VOLATILE || vol) C_nop(); + if (val == RVAL && ((expr->ex_flags & EX_VOLATILE) || vol)) C_nop(); } /* compare() serves as an auxiliary function of EVAL */