summaryrefslogtreecommitdiffstats
path: root/include/hw/pci/pci.h
diff options
context:
space:
mode:
authorPeter Maydell2015-10-16 18:19:35 +0200
committerPeter Maydell2015-10-18 12:00:40 +0200
commit40fe17bea478793fc9106a630fa3610dad51f939 (patch)
treef5d8aeaff4836df6fcb3528f866bf25608d83eba /include/hw/pci/pci.h
parentMerge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff)
downloadqemu-40fe17bea478793fc9106a630fa3610dad51f939.tar.gz
qemu-40fe17bea478793fc9106a630fa3610dad51f939.tar.xz
qemu-40fe17bea478793fc9106a630fa3610dad51f939.zip
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>
Diffstat (limited to 'include/hw/pci/pci.h')
0 files changed, 0 insertions, 0 deletions