aboutsummaryrefslogtreecommitdiff
path: root/emulators/simh/files/patch-LGP_lgp__stddev.c
blob: 7f4e12cb6066209e281d28041ed687b1dc87ccf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- LGP/lgp_stddev.c.orig	2016-12-01 22:43:42 UTC
+++ LGP/lgp_stddev.c
@@ -394,7 +394,7 @@ t_stat ttr_svc (UNIT *uptr)
 {
 t_stat r;
 
-if (r = read_reader (uptr, ttr_stopioe, (int32 *) &tti_buf))
+if ((r = read_reader (uptr, ttr_stopioe, (int32 *) &tti_buf)))
     return r;
 if (!(uptr->flags & UNIT_NOCS) &&                       /* cstop enable? */
     (tti_buf == FLEX_CSTOP))                            /* cond stop? */
@@ -415,7 +415,7 @@ t_stat ptr_svc (UNIT *uptr)
 {
 t_stat r;
 
-if (r = read_reader (uptr, ptr_stopioe, &uptr->buf))
+if ((r = read_reader (uptr, ptr_stopioe, &uptr->buf)))
     return r;
 if (uptr->buf == FLEX_CSTOP)                            /* cond stop? */
     inp_done = 1;
@@ -548,7 +548,7 @@ else {
         ch = '\b';
     else ch = flex_to_ascii[flex | (tto_uc << 6)];      /* cvt flex to ascii */
     if (ch > 0) {                                       /* legit? */
-        if (r = sim_putchar_s (ch))                     /* write char */
+        if ((r = sim_putchar_s (ch)))                   /* write char */
             return r;
         tto_unit[0].pos = tto_unit[0].pos + 1;
         if (flex == FLEX_CR) {                          /* cr? */