mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
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.
This commit is contained in:
parent
a4ea0946c3
commit
29798047af
@ -1,3 +1,9 @@
|
||||
2015-05-22 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR gas/18446
|
||||
* read.c (output_big_sleb128): Use U suffix to prevent compile
|
||||
time warning.
|
||||
|
||||
2015-05-19 Jiong Wang <jiong.wang@arm.com>
|
||||
|
||||
* config/tc-aarch64.c (process_movw_reloc_info): Sort relocation case
|
||||
|
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user