yet another fix: outoperand must do nothing with ps_end
authorceriel <none@none>
Thu, 30 Jul 1987 08:59:40 +0000 (08:59 +0000)
committerceriel <none@none>
Thu, 30 Jul 1987 08:59:40 +0000 (08:59 +0000)
util/ego/ca/ca_put.c

index ceee74f..973fa43 100644 (file)
@@ -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;