[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] First steps with avr-gcc

From: Royce Pereira
Subject: Re: [avr-gcc-list] First steps with avr-gcc
Date: Sat, 22 Oct 2005 00:37:27 +0530
User-agent: Opera M2/9.0 (Win32)

On Fri, 21 Oct 2005 23:52:23 +0530, Dave Hylands <address@hidden> wrote:

By default, the compiler is setup to use 16 bit ints. The C language
requires that the & operation promote both sides to ints.

I agree, but I believe that when the end result is to be assigned to an 8 bit (esp. unsigned char), the code ought to work *as if* it had been promoted, and no actual promotion need be done.

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]