This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/46908] printf not handling printing of double correctly in certain cases


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]