On 16 October 2015 at 21:43, John Snow wrote:
>
>
> On 10/16/2015 01:48 PM, Peter Maydell wrote:
>> Avoid undefined behaviour from shifting left into the sign bit:
>>
>> hw/ide/ahci.c:551:36: runtime error: left shift of 255 by 24 places cannot
>> be represented in type 'int'
>>
>> (Unfortunately
On 10/16/2015 01:48 PM, Peter Maydell wrote:
> Avoid undefined behaviour from shifting left into the sign bit:
>
> hw/ide/ahci.c:551:36: runtime error: left shift of 255 by 24 places cannot be
> represented in type 'int'
>
> (Unfortunately C's promotion rules mean that in the expression
> "som
Avoid undefined behaviour from shifting left into the sign bit:
hw/ide/ahci.c:551:36: runtime error: left shift of 255 by 24 places cannot be
represented in type 'int'
(Unfortunately C's promotion rules mean that in the expression
"some_uint8_t_variable << 24" the LHS gets promoted to signed
int