This is the mail archive of the gcc@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] |
But 65535 is also a value that fits into the size of a short, but is <>outside the valid range; that's why I mentioned the old signedness-preserving vs. value-preserving dichotomy.
<> Actually, on second thoughts, the compiler could be made to only apply the
mask operation when it knows that a potentially-unsafe (because
size-reducing) cast is being applied. Would that cover it?
-- Mark Mitchell CodeSourcery, LLC (916) 791-8304 mark@codesourcery.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |