hw/intc/openpic: Avoid shifting left into sign bit
commitdef60298825ccff006688ab9ee0ebb266c98b7e7
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2014 16:00:36 +0000 (17 16:00 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 27 Mar 2014 15:22:49 +0000 (27 19:22 +0400)
tree8e2619087a7ab12ecc7c3d91c37909d52f17edc0
parent00b0179347bae12c5856c1195b67ef5dc7887b9b
hw/intc/openpic: Avoid shifting left into sign bit

Add U suffix to avoid undefined behaviour. This is only strictly
necessary for the 1 << 31 cases; for consistency we extend it
to other constants in the same group.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/intc/openpic.c