aboutsummaryrefslogtreecommitdiff
path: root/emulators/simh/files/patch-HP2100_hp2100__cpu5.c
blob: 2d87092327c261a794050bca4bc022de7a839167 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- HP2100/hp2100_cpu5.c.orig	2016-12-01 22:43:42 UTC
+++ HP2100/hp2100_cpu5.c
@@ -650,7 +650,7 @@ entry = IR & 017;                       
 pattern = op_vma[entry];                            /* get operand pattern */
 
 if (pattern != OP_N)
-    if (reason = cpu_ops (pattern, op, intrq))      /* get instruction operands */
+    if ((reason = cpu_ops (pattern, op, intrq)))    /* get instruction operands */
         return reason;
 
 if (debug) {                                            /* debugging? */
@@ -1361,7 +1361,7 @@ entry = IR & 017;                       
 pattern = op_ema[entry];                                /* get operand pattern */
 
 if (pattern != OP_N)
-    if (reason = cpu_ops (pattern, op, intrq))          /* get instruction operands */
+    if ((reason = cpu_ops (pattern, op, intrq)))        /* get instruction operands */
         return reason;
 
 if (debug) {                                            /* debugging? */