tests/libqos/pci-pc: Avoid shifting left into sign bit
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2014 16:00:38 +0000 (16:00 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 27 Mar 2014 15:22:49 +0000 (19:22 +0400)
commita879125b47c3ae554c01824f996a64a45a86556e
tree9f15872e27298b9d3a78b06656c6aa54425a7225
parenta1f7f97b950a46393b0e55a9a0082e70f540cbbd
tests/libqos/pci-pc: Avoid shifting left into sign bit

Add U suffix when doing "1 << 31" to avoid undefined behaviour.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tests/libqos/pci-pc.c