[Top][All Lists]

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

RE: [avr-gcc-list] Bug? with switch statement

From: E. Weddington
Subject: RE: [avr-gcc-list] Bug? with switch statement
Date: Mon, 16 Dec 2002 10:59:56 -0700

On 16 Dec 2002 at 9:33, Hendrix, Jeff wrote:

> I declared readPort as an unsigned and it worked fine.
> Thanks for the help.
> -jeff

I went back and looked at your earlier posts. If you upgraded to 
20021209 (using WinAVR) and changed the makefile (to the sample one 
that is included in WinAVR) then it would make sense why it would 
then work.

In the sample makefile I included, I add this flag to the list of  
flags to send to GCC:
Which makes all char as unsigned char as default.

I usually add this because more than half the time, in an embedded 
project one does not usually want their chars to be signed by 

FYI, note that the sample makefile is just that, a sample, and feel 
free to do with it what you want.

avr-gcc-list at http://avr1.org

reply via email to

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