This is the mail archive of the gcc-help@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: Comparison


Hi,

2007/3/2, John (Eljay) Love-Jensen <eljay@adobe.com>:
Isn't the result of a comparison, such as (x < y), an int -- regardless of the types of x and y?

Hm, may be. But i wonder why the variable ctr is then initialized as 16bit if just the comparison would be int. And i also assume, that while((uint8_t)(++ctr < 64)) should avoid 16bit in this case, which it doesn't. -mint8 creates lots of other problems, so i can't try this out (besides this i don't really want to use this option :)

...Michael


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