Skip to content

Commit

Permalink
hw/arm/musicpal: Avoid shifting left into sign bit
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pm215 committed Mar 10, 2014
1 parent c8f8f9f commit 2b19495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/arm/musicpal.c
Expand Up @@ -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
Expand Down

0 comments on commit 2b19495

Please sign in to comment.