diff options
| author | Peter Maydell | 2014-02-21 15:03:01 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2014-03-07 11:29:21 +0100 |
| commit | 2c02f88780aa611d669f73b7677aeadc1211de7e (patch) | |
| tree | 8eff96bef7a1f61262d35c943b3233a85a28dc54 /include/exec/cpu-common.h | |
| parent | block: Fix error path segfault in bdrv_open() (diff) | |
| download | qemu-2c02f88780aa611d669f73b7677aeadc1211de7e.tar.gz qemu-2c02f88780aa611d669f73b7677aeadc1211de7e.tar.xz qemu-2c02f88780aa611d669f73b7677aeadc1211de7e.zip | |
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>
Diffstat (limited to 'include/exec/cpu-common.h')
0 files changed, 0 insertions, 0 deletions
