summaryrefslogtreecommitdiffstats
path: root/emulators/simh/files/patch-PDP11_pdp11__cpu.c
blob: 53d2e59c7f3fccbfef6fb618a49cead29b445324 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- PDP11/pdp11_cpu.c.orig	2016-12-01 22:43:42 UTC
+++ PDP11/pdp11_cpu.c
@@ -732,7 +732,7 @@ while (reason == 0)  {
 
     if (trap_req) {                                     /* check traps, ints */
         trapea = 0;                                     /* assume srch fails */
-        if (t = trap_req & TRAP_ALL) {                  /* if a trap */
+        if ((t = trap_req & TRAP_ALL)) {                /* if a trap */
             for (trapnum = 0; trapnum < TRAP_V_MAX; trapnum++) {
                 if ((t >> trapnum) & 1) {               /* trap set? */
                     trapea = trap_vec[trapnum];         /* get vec, clr */
OpenPOWER on IntegriCloud