Remove a couple of unnecessary if-tests.
Commit replaced a couple of while-loops in fmtfloat()
with calls to dopr_outchmulti, but I (tgl) failed to notice that
the new if-tests guarding those calls were really unnecessary,
because they're inside a larger if-block checking the same thing.
Ranier Vilela
Discussion:
@@ -1227,7 +1227,6 @@ fmtfloat(double value, char type, int forcesign, int leftjust,
{
/* pad before exponent */
dostr(convert, epos - convert, target);
- if (zeropadlen > 0)
dopr_outchmulti('0', zeropadlen, target);
dostr(epos, vallen - (epos - convert), target);
}
@@ -1235,7 +1234,6 @@ fmtfloat(double value, char type, int forcesign, int leftjust,
{
/* no exponent, pad after the digits */
dostr(convert, vallen, target);
- if (zeropadlen > 0)
dopr_outchmulti('0', zeropadlen, target);
}
}
