This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32782] inconsistent overflow in implicit conversion warning with -sizeof()
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2007 19:30:01 -0000
- Subject: [Bug c++/32782] inconsistent overflow in implicit conversion warning with -sizeof()
- References: <bug-32782-7493@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-07-16 19:30 -------
The type of sizeof is unsigned. So you really have (short)(unsigned)-4 .
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32782