This is the mail archive of the gcc-patches@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]

Re: Patch to set sizes and smaller types for mode/rtx arrays


On Sun, Dec 16, 2001 at 09:59:04PM -0500, Kaveh R. Ghazi wrote:
> I.e. "unsigned int < unsigned int - unsigned int" doesn't warn,
> whereas "unsigned int < unsigned char - unsigned char" does.

Arithmetic with unsigned short and unsigned char is promoted to int.


r~


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