[Bug 113] std.format.doFormat and small hex numbers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 22 02:21:11 PDT 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=113





------- Comment #2 from fvbommel at wxs.nl  2006-04-22 04:21 -------
(In reply to comment #1)
>     vchar = 'A' + (vnumber - 10);

I think you mean something more like:

     vchar = (uc ? 'A' : 'a') + (vnumber - 10);

but yeah, something like that. Or rewire the condition to just go to the normal
code for (vnumber >= 10).


-- 




More information about the Digitalmars-d-bugs mailing list