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

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

Re: [avr-gcc-list] Bug in shift operation with avr-gcc


From: Weddington, Eric
Subject: Re: [avr-gcc-list] Bug in shift operation with avr-gcc
Date: Tue, 7 Jun 2011 12:17:45 -0600


> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Celio Guimaraes
> Sent: Tuesday, June 07, 2011 11:28 AM
> To: address@hidden
> Subject: [avr-gcc-list] Bug in shift operation with avr-gcc
> 
> uint32_t  t1;
> int main(){
>     t1=0xf << (12);    // t1 gets fffff000 instead of 0000f000
> }
> 
> 

uint32_t  t1;
int main(){
    t1=0xfUL << (12);    // t1 gets fffff000 instead of 0000f000
}



reply via email to

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