summaryrefslogtreecommitdiffstats
path: root/emulators/simh/files/patch-PDP11_pdp11__ke.c
blob: 7f32010287762a0fb41650f8872ff59898e5578c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- PDP11/pdp11_ke.c.orig	2016-12-01 22:43:42 UTC
+++ PDP11/pdp11_ke.c
@@ -252,7 +252,7 @@ switch (PA & 017) {                     
         data = data & 077;                              /* 6b shift count */
         if (data != 0) {
             t32 = (ke_AC << 16) | ke_MQ;                /* 32b operand */
-            if (sign = GET_SIGN_W (ke_AC))              /* sext operand */
+            if ((sign = GET_SIGN_W (ke_AC)))            /* sext operand */
                 t32 = t32 | ~017777777777;
             if (data < 32) {                            /* [1,31] - left */
                 sout = (t32 >> (32 - data)) | (-sign << data);
@@ -282,7 +282,7 @@ switch (PA & 017) {                     
         data = data & 077;                              /* 6b shift count */
         if (data != 0) {
             t32 = (ke_AC << 16) | ke_MQ;                /* 32b operand */
-            if (sign = GET_SIGN_W (ke_AC))              /* sext operand */
+            if ((sign = GET_SIGN_W (ke_AC)))            /* sext operand */
                 t32 = t32 | ~017777777777;
             if (data < 32) {                            /* [1,31] - left */
                 sout = (t32 >> (31 - data)) | (-sign << data);
OpenPOWER on IntegriCloud