[ros-bugs] [Bug 3878] Right trailing zeros trimmed in roscalc display.
ReactOS.Bugzilla at www.reactos.org
ReactOS.Bugzilla at www.reactos.org
Wed Nov 19 19:51:26 CET 2008
http://www.reactos.org/bugzilla/show_bug.cgi?id=3878
--- Comment #2 from preston <tykef at atlas.cz> 2008-11-19 19:51:25 CET ---
calc - utl.c line 26:
_stprintf(buffer, TEXT("%#*.*lf"), width, ((MAX_LD_WIDTH-width-1)>=0) ?
MAX_LD_WIDTH-width-1 : 0, rpn->f);
doesn't work as expected.
for something like
_stprintf(buffer, TEXT("%#*.*lf"), 3, 12, 123.0f);
you should get "123.000000000000" in buffer, instead you get "123" and the
returned lenght is "3" instead of "16" (MAX_LD_WIDTH). seems like "#" flag is
being ignored
seems those zeroes are trimmed later in the code due to this misbehavior
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Ros-bugs
mailing list