diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-11-06 13:03:47 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-06 20:32:31 -0400 |
commit | 6b015f8977a876c4e1c77fd9732826e8da9c84a4 (patch) | |
tree | 6fd14c9e8639975f91499fc627eb3ee2898d04af /sim/sh/interp.c | |
parent | 7256320b9531e8af14ef75a42c09c47161be1480 (diff) | |
download | fsf-binutils-gdb-6b015f8977a876c4e1c77fd9732826e8da9c84a4.zip fsf-binutils-gdb-6b015f8977a876c4e1c77fd9732826e8da9c84a4.tar.gz fsf-binutils-gdb-6b015f8977a876c4e1c77fd9732826e8da9c84a4.tar.bz2 |
sim: sh: fix various parentheses warnings
Add parentheses to a bunch of places where the compiler suggests we
do to avoid confusion to most readers.
Diffstat (limited to 'sim/sh/interp.c')
-rw-r--r-- | sim/sh/interp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 4cac8de..2bae448 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -195,11 +195,11 @@ do { \ #define SET_SR_CS(EXP) SET_SR_BIT ((EXP), SR_MASK_CS) #define SET_BANKN(EXP) \ do { \ - IBNR = (IBNR & 0xfe00) | (EXP & 0x1f); \ + IBNR = (IBNR & 0xfe00) | ((EXP) & 0x1f); \ } while (0) #define SET_ME(EXP) \ do { \ - IBNR = (IBNR & 0x3fff) | ((EXP & 0x3) << 14); \ + IBNR = (IBNR & 0x3fff) | (((EXP) & 0x3) << 14); \ } while (0) #define SET_SR_M(EXP) SET_SR_BIT ((EXP), SR_MASK_M) #define SET_SR_Q(EXP) SET_SR_BIT ((EXP), SR_MASK_Q) |