diff options
author | Alan Modra <amodra@gmail.com> | 2020-01-20 12:32:37 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-01-20 15:45:50 +1030 |
commit | 4d6cbb644265d565eb743ffa2bd04092c2b05518 (patch) | |
tree | 88cf8eba893853c6fe4ce4fc5695ba4783f05d63 /opcodes | |
parent | 2bddb71a7421213dd9d8b8f2db133b43f5e1357e (diff) | |
download | gdb-4d6cbb644265d565eb743ffa2bd04092c2b05518.zip gdb-4d6cbb644265d565eb743ffa2bd04092c2b05518.tar.gz gdb-4d6cbb644265d565eb743ffa2bd04092c2b05518.tar.bz2 |
ubsan: hppa: negation of -2147483648
* hppa-dis.c (fput_const): Remove useless cast.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/hppa-dis.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 04eaa86..de9b9e3 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,9 @@ 2020-01-20 Alan Modra <amodra@gmail.com> + * hppa-dis.c (fput_const): Remove useless cast. + +2020-01-20 Alan Modra <amodra@gmail.com> + * arm-dis.c (print_insn_arm): Wrap 'T' value. 2020-01-18 Nick Clifton <nickc@redhat.com> diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c index 3c15701..93156da 100644 --- a/opcodes/hppa-dis.c +++ b/opcodes/hppa-dis.c @@ -207,7 +207,7 @@ static void fput_const (unsigned num, disassemble_info *info) { if ((int) num < 0) - (*info->fprintf_func) (info->stream, "-%x", - (int) num); + (*info->fprintf_func) (info->stream, "-%x", -num); else (*info->fprintf_func) (info->stream, "%x", num); } |