This is the mail archive of the
mailing list for the GCC project.
Re: RFC: Address some fallout from "fractional modes"
Richard Henderson <firstname.lastname@example.org> writes:
> On Tue, Nov 04, 2003 at 04:39:27PM -0800, Zack Weinberg wrote:
>> +#define GET_MODE_SIZE(MODE) ((unsigned short) mode_size[MODE])
>> +#define GET_MODE_BITSIZE(MODE) ((unsigned short) (GET_MODE_SIZE (MODE) * BITS_PER_UNIT))
> Why unsigned short? It still promotes to signed int.
Using either "unsigned int" or "signed int" here causes "comparison of
signed and unsigned" warnings (in different places). "unsigned short"