ports/emulators/simh/files/patch-PDP11_pdp11__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

11 lines
641 B
C

--- PDP11/pdp11_cpu.c.orig 2016-12-01 22:43:42 UTC
+++ PDP11/pdp11_cpu.c
@@ -732,7 +732,7 @@ while (reason == 0) {
if (trap_req) { /* check traps, ints */
trapea = 0; /* assume srch fails */
- if (t = trap_req & TRAP_ALL) { /* if a trap */
+ if ((t = trap_req & TRAP_ALL)) { /* if a trap */
for (trapnum = 0; trapnum < TRAP_V_MAX; trapnum++) {
if ((t >> trapnum) & 1) { /* trap set? */
trapea = trap_vec[trapnum]; /* get vec, clr */