This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6774: printf("%lld") prints bad values
- From: rth at gcc dot gnu dot org
- To: brian at talusmusic dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 23 May 2002 06:42:06 -0000
- Subject: Re: c++/6774: printf("%lld") prints bad values
- Reply-to: rth at gcc dot gnu dot org, brian at talusmusic dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: printf("%lld") prints bad values
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed May 22 23:42:06 2002
State-Changed-Why:
Buggy test case. You have a typo in your printf format.
Should be "1 << %lld = %lld". Using -Wall would have
pointed this out:
z.c: In function `main':
z.c:11: warning: int format, different type arg (arg 2)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6774