[Issue 19878] Some NaNs are printed as -nan
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 20 15:10:32 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19878
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dlang-bugzilla at thecybershad
| |ow.net
--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
////////// test.c //////////
#include <stdio.h>
union X { int x; float y; };
int main()
{
union X x;
x.x = -1;
printf("%f\n", x.y);
return 0;
}
////////////////////////////
This also prints -nan.
What's the bug?
--
More information about the Digitalmars-d-bugs
mailing list