ports/emulators/simh/files/patch-sim__tape.c
Matthew Seaman 7c084f620e Fixes to allow building on 12-CURRENT
- fix build failures in i386 and amd64 due to compiler changes
- fix numerous compilation warnings and logical errors that may trap
  in the future
- convert all distribution files from DOS format to ease future changes
- convert legacy patch file to new naming convention

PR:		214990
Submitted by:	bob@eager.cx (maintainer)
2017-01-03 14:00:47 +00:00

20 lines
927 B
C

--- 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? */