This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/14788] [3.3/3.4/3.5 Regression] Subtracting a double from a short gives incorrect result


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]