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 c++/40752] -Wconversion: do not warn for operands not larger than target type



------- Comment #13 from pinskia at gcc dot gnu dot org  2009-07-15 17:00 -------
Or rather from SCHAR_MAX + 1 to SCHAR_MIN :).  Since it is 0x7F + 1 ==
(int)0x80.  So we have a negative value now from a positive value.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752


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