freebsd-ports/emulators/simh/files/patch-PDP10_pdp10__cpu.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

29 lines
1.5 KiB
C

--- PDP10/pdp10_cpu.c.orig 2016-12-01 22:43:42 UTC
+++ PDP10/pdp10_cpu.c
@@ -705,7 +705,7 @@ pager_tc = FALSE;
pflgs = 0; /* not in PXCT */
xct_cnt = 0; /* count XCT's */
if (sim_interval <= 0) { /* check clock queue */
- if (i = sim_process_event ()) /* error? stop sim */
+ if ((i = sim_process_event ())) /* error? stop sim */
ABORT (i);
pi_eval (); /* eval pi system */
}
@@ -719,7 +719,7 @@ if (sim_interval <= 0) {
if (qintr) {
int32 vec, uba;
pager_pi = TRUE; /* flag in pi seq */
- if (vec = pi_ub_vec (qintr, &uba)) { /* Unibus interrupt? */
+ if ((vec = pi_ub_vec (qintr, &uba))) { /* Unibus interrupt? */
mb = ReadP (epta + EPT_UBIT + uba); /* get dispatch table */
if (mb == 0) /* invalid? stop */
ABORT (STOP_ZERINT);
@@ -2019,7 +2019,7 @@ int32 test_int (void)
int32 t;
if (sim_interval <= 0) { /* check queue */
- if (t = sim_process_event ()) /* IO event? */
+ if ((t = sim_process_event ())) /* IO event? */
return t;
if (pi_eval ()) /* interrupt? */
return (INTERRUPT);