hw/ide/ahci.h: Avoid shifting left into sign bit
commit2c02f88780aa611d669f73b7677aeadc1211de7e
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 21 Feb 2014 14:03:01 +0000 (21 14:03 +0000)
committerKevin Wolf <kwolf@redhat.com>
Fri, 7 Mar 2014 10:29:21 +0000 (7 11:29 +0100)
tree8eff96bef7a1f61262d35c943b3233a85a28dc54
parenteb909c7f72362e3c891d679f6f4eab0885fdb1c1
hw/ide/ahci.h: Avoid shifting left into sign bit

Add 'U' suffixes to avoid undefined behaviour shifting left into
the signed bit of a signed integer type. Clang's sanitizer will
warn about this:

 hw/ide/ahci.c:1210:27: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/ahci.h