1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/emulators/simh/files/patch-VAX_vax__octa.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

21 lines
896 B
C

--- VAX/vax_octa.c.orig 2016-12-01 22:43:43 UTC
+++ VAX/vax_octa.c
@@ -187,7 +187,7 @@ switch (opc) {
break;
case MOVH:
- if (r = op_tsth (opnd[0])) { /* test for 0 */
+ if ((r = op_tsth (opnd[0]))) { /* test for 0 */
h_write_o (spec, va, opnd, acc); /* nz, write result */
CC_IIZP_FP (r); /* set cc's */
}
@@ -198,7 +198,7 @@ switch (opc) {
break;
case MNEGH:
- if (r = op_tsth (opnd[0])) { /* test for 0 */
+ if ((r = op_tsth (opnd[0]))) { /* test for 0 */
opnd[0] = opnd[0] ^ FPSIGN; /* nz, invert sign */
h_write_o (spec, va, opnd, acc); /* write result */
CC_IIZZ_FP (opnd[0]); /* set cc's */