commit | 2c02f88780aa611d669f73b7677aeadc1211de7e | [log] [tgz] |
---|---|---|
author | Peter Maydell <peter.maydell@linaro.org> | Fri Feb 21 14:03:01 2014 +0000 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Mar 07 11:29:21 2014 +0100 |
tree | 8eff96bef7a1f61262d35c943b3233a85a28dc54 | |
parent | eb909c7f72362e3c891d679f6f4eab0885fdb1c1 [diff] |
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>