aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-05-22 14:27:36 +0100
committerNick Clifton <nickc@redhat.com>2015-05-22 14:27:36 +0100
commit29798047afaa22335a504280a5bbdbafe2b1b63d (patch)
treed05ce9666fb38ac80a84eee00d645e0be2d2dca5 /gas/read.c
parenta4ea0946c3f1badd6755b85b4e50e2ec4841e69c (diff)
downloadgdb-29798047afaa22335a504280a5bbdbafe2b1b63d.zip
gdb-29798047afaa22335a504280a5bbdbafe2b1b63d.tar.gz
gdb-29798047afaa22335a504280a5bbdbafe2b1b63d.tar.bz2
Fixes: "gas/read.c:5087:12: error: left shift of negative"
PR gas/18446 * read.c (output_big_sleb128): Use U suffix to prevent compile time warning.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index 2224c0e..816c255 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -5084,7 +5084,7 @@ output_big_sleb128 (char *p, LITTLENUM_TYPE *bignum, int size)
{
/* Sign-extend VAL. */
if (val & (1 << (loaded - 1)))
- val |= ~0 << loaded;
+ val |= ~0U << loaded;
if (orig)
*p = val & 0x7f;
p++;