This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4928: (unsigned long long) cast with random top 4 bytes
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, naiman at math dot jct dot ac dot il, nobody at gcc dot gnu dot org
- Date: 3 Dec 2001 16:22:45 -0000
- Subject: Re: c++/4928: (unsigned long long) cast with random top 4 bytes
Synopsis: (unsigned long long) cast with random top 4 bytes
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Mon Dec 3 08:22:45 2001
State-Changed-Why:
In gcc 3.0, g++ issues a warning:
q.cc: In function `int main()':
q.cc:9: warning: cast from pointer to integer of different size.
You are taking the address of an int, and casting it to
an unsigned long long, hence the warning.
Not a gcc problem.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4928&database=gcc