This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14788] [3.3/3.4/3.5 Regression] Subtracting a double from a short gives incorrect result
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2004 07:31:34 -0000
- Subject: [Bug target/14788] [3.3/3.4/3.5 Regression] Subtracting a double from a short gives incorrect result
- References: <20040330215205.14788.rick@glentng.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-03-31 07:31 -------
Hum... Sorry, I read the code far too quickly and didn't detect that 40000 was
not within the range of a 'short'.
So
short fortyk = 40000;
is already implementation-defined according to C99 6.3.1.3 §3.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14788