From: ceriel Date: Thu, 30 Jul 1987 08:59:40 +0000 (+0000) Subject: yet another fix: outoperand must do nothing with ps_end X-Git-Tag: release-5-5~3971 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0e9f072917516429f93a0e060a6dcd4838fcd658;p=ack.git yet another fix: outoperand must do nothing with ps_end --- diff --git a/util/ego/ca/ca_put.c b/util/ego/ca/ca_put.c index ceee74f4e..973fa4365 100644 --- a/util/ego/ca/ca_put.c +++ b/util/ego/ca/ca_put.c @@ -271,7 +271,8 @@ STATIC outoperand(lnp) switch(TYPE(lnp)) { case OPNO: - if ((em_flag[INSTR(lnp)-sp_fmnem]&EM_PAR) != PAR_NO) { + if (INSTR(lnp) <= sp_lmnem && + (em_flag[INSTR(lnp)-sp_fmnem]&EM_PAR) != PAR_NO) { outbyte((byte) sp_cend); } break;