This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: c++/6774: printf("%lld") prints bad values
- From: "Brian Ceccarelli" <brian at talusmusic dot com>
- 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>
- Date: Thu, 23 May 2002 08:46:17 -0400
- Subject: RE: c++/6774: printf("%lld") prints bad values
- Reply-to: <brian at talusmusic dot com>
Thank you. I didn't think the previous %d would matter. 'i 'was printing
fine. I was interested in 'n'. Just learned something.
This test case wasn't exactly the problem I was having. I must have a
different problem in my program. Thanks . . . and I am sorry for
bothering you.
Brian
-----Original Message-----
From: rth@gcc.gnu.org [mailto:rth@gcc.gnu.org]
Sent: Thursday, May 23, 2002 2:42 AM
To: brian@talusmusic.com; gcc-bugs@gcc.gnu.org; gcc-prs@gcc.gnu.org;
nobody@gcc.gnu.org
Subject: Re: c++/6774: printf("%lld") prints bad values
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&p
r=6774