richard@aiai.ed.ac.uk (Richard Tobin) (10/10/90)
I'm posting this here because (a) it's likely to affect some Minix users
and (b) I can't find Earl Chew's mail address.
In _f_cvt.c at line 458:
/* Convert exponent */
if (fracfill != 0 && (fflag & F_FPFORMATE)) {
fv[++fvx].att = FV_F_PADDING;
fv[fvx].len = fracfill;
fv[fvx].arg = __zfill;
fv[++fvx].len = FV_F_VECTOR; <------- WRONG
fv[fvx].len = 0;
fv[fvx].arg = bp;
}
The assignment should be
fv[++fvx].att = FV_F_VECTOR;
The symptom of this bug is that occasionally e-format numbers will
print as 3.14159eeee (actually, that's just the symptom I got, others
may be possible).
-- Richard
--
Richard Tobin, JANET: R.Tobin@uk.ac.ed
AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk
Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin