Peter Maydell 40fe17bea4 hw/ide/ahci.c: Fix shift left into sign bit
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 before shifting.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: John Snow <jsnow@redhat.com>
2015-10-18 11:00:40 +01:00
..
2015-03-10 14:01:22 +00:00
2015-05-22 15:58:22 -04:00
2015-07-31 16:38:50 -04:00
2014-10-24 12:19:11 +01:00
2015-07-04 02:06:04 -04:00
2015-03-10 14:01:22 +00:00