diff options
author | Peter Maydell | 2014-03-10 15:56:30 +0100 |
---|---|---|
committer | Peter Maydell | 2014-03-10 15:56:30 +0100 |
commit | 2b194951c592ad670ddf3bc5764216408ade46f8 (patch) | |
tree | 400f45ea65a25805778d7a125a45e2738605dc24 /hw/arm | |
parent | hw/ssi/xilinx_spips.c: Avoid shifting left into sign bit (diff) | |
download | qemu-2b194951c592ad670ddf3bc5764216408ade46f8.tar.gz qemu-2b194951c592ad670ddf3bc5764216408ade46f8.tar.xz qemu-2b194951c592ad670ddf3bc5764216408ade46f8.zip |
hw/arm/musicpal: Avoid shifting left into sign bit
Add missing 'U' suffixes to avoid shifting left into sign
bit of a signed integer.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1392988008-15938-5-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/musicpal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index d10b5dbb49..de542010aa 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -110,10 +110,10 @@ #define MP_PHY_88E3015 0x01410E20 /* TX descriptor status */ -#define MP_ETH_TX_OWN (1 << 31) +#define MP_ETH_TX_OWN (1U << 31) /* RX descriptor status */ -#define MP_ETH_RX_OWN (1 << 31) +#define MP_ETH_RX_OWN (1U << 31) /* Interrupt cause/mask bits */ #define MP_ETH_IRQ_RX_BIT 0 |