ubsan: hppa: negation of -2147483648

* hppa-dis.c (fput_const): Remove useless cast.
This commit is contained in:
Alan Modra 2020-01-20 12:32:37 +10:30
parent 2bddb71a74
commit 4d6cbb6442
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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);
}