[coreboot] Incorrect casting in romcc.

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Fri Sep 12 16:07:29 CEST 2008


On 12.09.2008 14:59, Andriy Gapon wrote:
> on 12/09/2008 15:30 Mats Erik Andersson said the following:
>>     data = 0;
>>     data += ( fn(0x10) >> 1 ) && 0x007f;
>>
>> where fn(0x10) == 0x1010. However, the actual outcome of the previous
>> calculation is the value 0x01, instead of the expected 0x08.
>
> did you by a chance confused '&' and '&&" as in your examples?

I believe Andriy is right. The expected outcome of the calculation above
is indeed 1.

Regards,
Carl-Daniel

-- 
http://www.hailfinger.org/





More information about the coreboot mailing list