[Bug c/46908] printf not handling printing of double correctly in certain cases
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 12 17:32:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46908
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2010-12-12 17:32:26 UTC ---
Use -Wall:
test.c:18: warning: format ‘%f’ expects type ‘double’, but argument 2 has type
‘long double’
which means that %f is not for long double, you should use %Lf and it will
work.
More information about the Gcc-bugs
mailing list