avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Using PORTB with variables, PORTB = var


From: Hugo González Monteverde
Subject: Re: [avr-gcc-list] Using PORTB with variables, PORTB = var
Date: Tue, 23 May 2006 23:51:28 -0500
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

address@hidden wrote:
Hiya,

The var is an int.


and PORTB is an unsigned char. Any shifting will give you unexpected behavior. Mixing types will give you at most a warning, but no errors.

Hugo




reply via email to

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