ports/emulators/simh/files/patch-PDP10_pdp10__lp20.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
1.1 KiB
C

--- PDP10/pdp10_lp20.c.orig 2016-12-01 22:43:42 UTC
+++ PDP10/pdp10_lp20.c
@@ -563,7 +563,7 @@ lp20_unit.pos = ftell (lp20_unit.fileref
if (dvuadv) /* update DAVFU ptr */
dvptr = (dvptr + cnt) % dvlnt;
if (davfu[dvptr] & (1 << DV_TOF)) { /* at top of form? */
- if (lppagc = (lppagc - 1) & PAGC_MASK) { /* decr page cntr */
+ if ((lppagc = (lppagc - 1) & PAGC_MASK)) { /* decr page cntr */
lpcsa = lpcsa & ~CSA_PZRO; /* update status */
return TRUE;
}
@@ -592,7 +592,7 @@ for (i = 0; i < dvlnt; i++) {
lp20_adv (1, FALSE);
fputc ('\f', lp20_unit.fileref); /* print form feed */
lp20_unit.pos = ftell (lp20_unit.fileref);
- if (lppagc = (lppagc - 1) & PAGC_MASK) { /* decr page cntr */
+ if ((lppagc = (lppagc - 1) & PAGC_MASK)) { /* decr page cntr */
lpcsa = lpcsa & ~CSA_PZRO; /* update status */
return TRUE;
}