This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42807] constant folding at compile time limited to integers.
- 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: 19 Jan 2010 18:13:37 -0000
- Subject: [Bug c/42807] constant folding at compile time limited to integers.
- References: <bug-42807-18692@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-01-19 18:13 -------
This is correct for C/C++. 2501*1600 is an integer. If you want an unsigned
long, use ((unsigned long)2501)*1600 or 2501ul*1600ul.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42807