« Return to Thread: [Bug stdio/13726] New: the result of wprintf (L"%La\n", (long double) 22.625); is 0xb.bp+1, but the correct result should be 0xb.5p+1

[Bug stdio/13726] the result of wprintf (L"%La\n", (long double) 22.625); is 0xb.bp+1, but the correct result should be 0xb.5p+1

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

| View in Thread

http://sourceware.org/bugzilla/show_bug.cgi?id=13726

--- Comment #2 from lovesnow <no.1zhouzhonghua at 163 dot com> 2012-02-24 08:13:11 UTC ---
this is the patch, yesterday i forgot!
在 2012-02-23四的 10:51 +0000,aj at suse dot de写道:

> http://sourceware.org/bugzilla/show_bug.cgi?id=13726
>
> Andreas Jaeger <aj at suse dot de> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>    Last reconfirmed|                            |2012-02-23
>
> --- Comment #1 from Andreas Jaeger <aj at suse dot de> 2012-02-23 10:51:15 UTC ---
> I'm confirming the bug
>
> Small test program:
>
> #include <stdio.h>
> #include <wchar.h>
>
> int
> main (void) {
>
>   long double x = 22.625;
>
>   //printf ("%La\n", x);
>   wprintf (L"%La\n", x);
>
>   return 0;
> }
>
> It gives indeed different outputs for printf and wprintf.
>

--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

 « Return to Thread: [Bug stdio/13726] New: the result of wprintf (L"%La\n", (long double) 22.625); is 0xb.bp+1, but the correct result should be 0xb.5p+1