From d2006b19afe3c7a70dceafec63afc90954bb7555 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 2 Oct 1987 10:48:38 +0000 Subject: [PATCH] do not replace LAR/SAR by AAR LOI/STI, when the descriptor is not available --- util/ego/cs/cs_profit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/ego/cs/cs_profit.c b/util/ego/cs/cs_profit.c index f6c7fc9fd..8026b7514 100644 --- a/util/ego/cs/cs_profit.c +++ b/util/ego/cs/cs_profit.c @@ -156,6 +156,7 @@ STATIC bool okay_lines(avp, ocp) occur_p ocp; { register line_p lnp, next; + offset sz; for (lnp = ocp->oc_lfirst; lnp != (line_p) 0; lnp = next) { next = lnp != ocp->oc_llast ? lnp->l_next : (line_p) 0; @@ -175,7 +176,8 @@ STATIC bool okay_lines(avp, ocp) */ if (INSTR(ocp->oc_llast) == op_lar || INSTR(ocp->oc_llast) == op_sar) { if (avp->av_instr == (byte) op_aar && time_space_ratio < 50) { - return array_elemsize(avp->av_othird) <= AR_limit; + return (sz = array_elemsize(avp->av_othird)) <= AR_limit && + sz != UNKNOWN_SIZE; } } return TRUE; -- 2.34.1