June 13, 2006 Returning to bug 113: std.format.doFormat and small hex numbers | ||||
---|---|---|---|---|
| ||||
To fix the bug in std\format.d lines (from #874)
if (precision == 0 || !(flags & FLprecision))
{
vchar = '0' + vnumber;
goto L2;
}
should be changed to
if (precision == 0 || !(flags & FLprecision))
{
if (vnumber < 10)
vchar = '0' + vnumber;
else
vchar = (uc ? 'A' : 'a') + (vnumber - 10);
goto L2;
}
It's easy to do.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
Copyright © 1999-2021 by the D Language Foundation