--- Comment #3 from pinskia at gcc dot gnu dot org 2009-06-13 19:29 ---
This is expected because long double is only 80bits (only 64bits for
significand), so adding one to unsigned long's max (64bit) will cause a
rounding to happen.
--
pinskia at gcc dot gnu dot org changed:
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-06-10 20:35 ---
This is called rounding. I think you need to look at the hex values of the
long double to see what happens rather than printing out the value.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40407
--- Comment #1 from ivranos at freemail dot gr 2009-06-10 20:30 ---
Created an attachment (id=17976)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17976&action=view)
The main.ii file produced with " g++ -ansi -pedantic-errors -Wall -save-temps
main.cc -o foobar"
--
http://gcc.