From 39ac6fb719b9e533c183256b3f5e3d0328120547 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 11 Apr 1988 11:41:50 +0000 Subject: [PATCH] some minor fixes --- mach/i86/as/mach0.c | 3 +++ mach/i86/as/mach5.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mach/i86/as/mach0.c b/mach/i86/as/mach0.c index b45cb628d..59d58cf65 100644 --- a/mach/i86/as/mach0.c +++ b/mach/i86/as/mach0.c @@ -11,3 +11,6 @@ #define LISTING /* enable listing facilities */ #define RELOCATION /* generate relocation info */ #define DEBUG 0 + +#undef valu_t +#define valu_t long diff --git a/mach/i86/as/mach5.c b/mach/i86/as/mach5.c index e3bf50ad3..4716c2ed0 100644 --- a/mach/i86/as/mach5.c +++ b/mach/i86/as/mach5.c @@ -88,19 +88,18 @@ indexed() { branch(opc,exp) register opc; expr_t exp; { register sm,dist; - int saving; + int saving = opc == 0353 ? 1 : 3; dist = exp.val - (DOTVAL + 2); if (pass == PASS_2 && dist > 0 && !(exp.typ & S_DOT)) dist -= DOTGAIN; - sm = fitb(dist); + sm = dist > 0 ? fitb(dist-saving) : fitb(dist); if ((exp.typ & ~S_DOT) != DOTTYP) sm = 0; if ((opc & 0370) == 0340) { fit(sm); sm = 1; } else { - saving = opc == 0353 ? 1 : 3; if ((sm = small(sm,saving)) == 0) { if (opc != 0353) { emit1(opc^1); -- 2.34.1