www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Returning to bug 113: std.format.doFormat and small hex numbers


   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/
Jun 13 2006