From 67c750a70c37596285d5132aae4aa42f48e0086e Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 24 Nov 1993 12:39:19 +0000 Subject: [PATCH] Improved CSA some more --- util/int/do_misc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/util/int/do_misc.c b/util/int/do_misc.c index f558b8372..86b3d2b3d 100644 --- a/util/int/do_misc.c +++ b/util/int/do_misc.c @@ -432,15 +432,12 @@ PRIVATE index_jump(nbytes) register ptr cdp = dppop(); /* Case Descriptor Pointer */ register long t_index = /* Table INDEX */ spop(nbytes) - mem_lds(cdp + psize, nbytes); - register ptr nPC; /* New Program Counter */ + register ptr nPC = 0; /* New Program Counter */ if (t_index >= 0 && t_index <= mem_lds(cdp + nbytes + psize, nbytes)) { nPC = mem_ldip(cdp + (2 * nbytes) + ((t_index + 1) * psize)); - if (nPC == 0) { - trap(ECASE); - } } - else if ((nPC = mem_ldip(cdp)) == 0) { + if (nPC == 0 && (nPC = mem_ldip(cdp)) == 0) { trap(ECASE); } newPC(nPC);