diff options
author | Nick Clifton <nickc@redhat.com> | 2016-06-14 13:51:10 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-06-14 13:51:10 +0100 |
commit | d2dfe54d6c4c307dd64a5e6bdcc7d1081b17233a (patch) | |
tree | 8b6672c9ffa1ef340e988a9a7b2a252685f51499 /gas/config/tc-nds32.c | |
parent | 60a019a089177f3f58f636580857414d769b8c11 (diff) | |
download | gdb-d2dfe54d6c4c307dd64a5e6bdcc7d1081b17233a.zip gdb-d2dfe54d6c4c307dd64a5e6bdcc7d1081b17233a.tar.gz gdb-d2dfe54d6c4c307dd64a5e6bdcc7d1081b17233a.tar.bz2 |
Fix compile time warning building gas for the NDS32 with gcc v6.1.1
gas * config/tc-nds32.c (nds32_get_align): Avoid left shifting a
signed constant.
Diffstat (limited to 'gas/config/tc-nds32.c')
-rw-r--r-- | gas/config/tc-nds32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-nds32.c b/gas/config/tc-nds32.c index 1d1a80e..643f06d 100644 --- a/gas/config/tc-nds32.c +++ b/gas/config/tc-nds32.c @@ -5610,7 +5610,7 @@ nds32_get_align (addressT address, int align) { addressT mask, new_address; - mask = ~((~0) << align); + mask = ~((~0U) << align); new_address = (address + mask) & (~mask); return (new_address - address); } |