|
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) |
Hi,On Fri, 21 Oct 2005 23:52:23 +0530, Dave Hylands <address@hidden> wrote:
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.By default, the compiler is setup to use 16 bit ints. The C language requires that the & operation promote both sides to ints.
--Royce. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
[Prev in Thread] | Current Thread | [Next in Thread] |