]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/read.c
Fixes: "gas/read.c:5087:12: error: left shift of negative"
[thirdparty/binutils-gdb.git] / gas / read.c
index 2224c0ed241845eb2e73f59b807dedd617f2a0e0..816c255bf265d7cb3a17fc0cfd850eaa90dc8f71 100644 (file)
@@ -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++;