minor improvement to volatile code
authorceriel <none@none>
Fri, 21 Jun 1991 10:31:20 +0000 (10:31 +0000)
committerceriel <none@none>
Fri, 21 Jun 1991 10:31:20 +0000 (10:31 +0000)
lang/cem/cemcom.ansi/eval.c

index 8993fdc..08b8f81 100644 (file)
@@ -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       */