ports/emulators/simh/files/patch-PDP10_pdp10__mdfp.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
591 B
C

--- PDP10/pdp10_mdfp.c.orig 2016-12-01 22:43:42 UTC
+++ PDP10/pdp10_mdfp.c
@@ -493,7 +493,7 @@ if (a.fhi >= 2 * b.fhi) {
SETF (F_AOV | F_DCK | F_FOV | F_T1);
return FALSE;
}
-if (savhi = a.fhi) { /* dvd = 0? quo = 0 */
+if ((savhi = a.fhi)) { /* dvd = 0? quo = 0 */
a.sign = a.sign ^ b.sign; /* result sign */
a.exp = a.exp - b.exp + FP_BIAS + 1; /* result exponent */
a.fhi = a.fhi / (b.fhi >> (FP_N_FHI + 1)); /* do divide */