From 0e9f072917516429f93a0e060a6dcd4838fcd658 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 30 Jul 1987 08:59:40 +0000 Subject: [PATCH] yet another fix: outoperand must do nothing with ps_end --- util/ego/ca/ca_put.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1