blob: 93cc5df112ef426acdd537194e858f85f7a36105 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- sim_tape.c.orig 2016-12-01 22:43:43 UTC
+++ sim_tape.c
@@ -404,7 +404,7 @@ t_addr opos;
t_stat st;
opos = uptr->pos; /* old position */
-if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */
+if ((st = sim_tape_rdlntf (uptr, &tbc))) /* read rec lnt */
return st;
*bc = rbc = MTR_L (tbc); /* strip error flag */
if (rbc > max) { /* rec out of range? */
@@ -453,7 +453,7 @@ uint32 f = MT_GET_FMT (uptr);
t_mtrlnt i, rbc, tbc;
t_stat st;
-if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */
+if ((st = sim_tape_rdlntr (uptr, &tbc))) /* read rec lnt */
return st;
*bc = rbc = MTR_L (tbc); /* strip error flag */
if (rbc > max) /* rec out of range? */
|