Returning to bug 113: std.format.doFormat and small hex numbers
    Artem Rebrov 
    ar_other at mail.ru
       
    Tue Jun 13 12:11:10 PDT 2006
    
    
  
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/
    
    
More information about the Digitalmars-d-bugs
mailing list