From 4d6cbb644265d565eb743ffa2bd04092c2b05518 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 20 Jan 2020 12:32:37 +1030 Subject: ubsan: hppa: negation of -2147483648 * hppa-dis.c (fput_const): Remove useless cast. --- opcodes/hppa-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opcodes/hppa-dis.c') 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); } -- cgit v1.1